GimpDeviceInfo

GimpDeviceInfo

Synopsis

#define             GIMP_DEVICE_INFO_CONTEXT_MASK
                    GimpDeviceInfo;
GimpDeviceInfo *    gimp_device_info_new                (Gimp *gimp,
                                                         GdkDevice *device,
                                                         GdkDisplay *display);
GdkDevice *         gimp_device_info_get_device         (GimpDeviceInfo *info,
                                                         GdkDisplay **display);
void                gimp_device_info_set_device         (GimpDeviceInfo *info,
                                                         GdkDevice *device,
                                                         GdkDisplay *display);
GdkInputMode        gimp_device_info_get_mode           (GimpDeviceInfo *info);
void                gimp_device_info_set_mode           (GimpDeviceInfo *info,
                                                         GdkInputMode mode);
gboolean            gimp_device_info_has_cursor         (GimpDeviceInfo *info);
gint                gimp_device_info_get_n_axes         (GimpDeviceInfo *info);
GdkAxisUse          gimp_device_info_get_axis_use       (GimpDeviceInfo *info,
                                                         gint axis);
void                gimp_device_info_set_axis_use       (GimpDeviceInfo *info,
                                                         gint axis,
                                                         GdkAxisUse use);
gint                gimp_device_info_get_n_keys         (GimpDeviceInfo *info);
void                gimp_device_info_get_key            (GimpDeviceInfo *info,
                                                         gint key,
                                                         guint *keyval,
                                                         GdkModifierType *modifiers);
void                gimp_device_info_set_key            (GimpDeviceInfo *info,
                                                         gint key,
                                                         guint keyval,
                                                         GdkModifierType modifiers);
GimpCurve *         gimp_device_info_get_curve          (GimpDeviceInfo *info,
                                                         GdkAxisUse use);
gdouble             gimp_device_info_map_axis           (GimpDeviceInfo *info,
                                                         GdkAxisUse use,
                                                         gdouble value);
void                gimp_device_info_changed            (GimpDeviceInfo *info);
GimpDeviceInfo *    gimp_device_info_get_by_device      (GdkDevice *device);
gint                gimp_device_info_compare            (GimpDeviceInfo *a,
                                                         GimpDeviceInfo *b);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpContext
                     +----GimpDeviceInfo

Implemented Interfaces

GimpDeviceInfo implements GimpConfigInterface.

Properties

  "axes"                     GValueArray*          : Read / Write / Construct
  "device"                   GdkDevice*            : Read / Write / Construct
  "display"                  GdkDisplay*           : Read / Write / Construct
  "keys"                     GValueArray*          : Read / Write / Construct
  "mode"                     GdkInputMode          : Read / Write / Construct
  "pressure-curve"           GimpCurve*            : Read / Write

Signals

  "changed"                                        : Run First

Description

Details

GIMP_DEVICE_INFO_CONTEXT_MASK

#define             GIMP_DEVICE_INFO_CONTEXT_MASK


GimpDeviceInfo

typedef struct _GimpDeviceInfo GimpDeviceInfo;


gimp_device_info_new ()

GimpDeviceInfo *    gimp_device_info_new                (Gimp *gimp,
                                                         GdkDevice *device,
                                                         GdkDisplay *display);


gimp_device_info_get_device ()

GdkDevice *         gimp_device_info_get_device         (GimpDeviceInfo *info,
                                                         GdkDisplay **display);


gimp_device_info_set_device ()

void                gimp_device_info_set_device         (GimpDeviceInfo *info,
                                                         GdkDevice *device,
                                                         GdkDisplay *display);


gimp_device_info_get_mode ()

GdkInputMode        gimp_device_info_get_mode           (GimpDeviceInfo *info);


gimp_device_info_set_mode ()

void                gimp_device_info_set_mode           (GimpDeviceInfo *info,
                                                         GdkInputMode mode);


gimp_device_info_has_cursor ()

gboolean            gimp_device_info_has_cursor         (GimpDeviceInfo *info);


gimp_device_info_get_n_axes ()

gint                gimp_device_info_get_n_axes         (GimpDeviceInfo *info);


gimp_device_info_get_axis_use ()

GdkAxisUse          gimp_device_info_get_axis_use       (GimpDeviceInfo *info,
                                                         gint axis);


gimp_device_info_set_axis_use ()

void                gimp_device_info_set_axis_use       (GimpDeviceInfo *info,
                                                         gint axis,
                                                         GdkAxisUse use);


gimp_device_info_get_n_keys ()

gint                gimp_device_info_get_n_keys         (GimpDeviceInfo *info);


gimp_device_info_get_key ()

void                gimp_device_info_get_key            (GimpDeviceInfo *info,
                                                         gint key,
                                                         guint *keyval,
                                                         GdkModifierType *modifiers);


gimp_device_info_set_key ()

void                gimp_device_info_set_key            (GimpDeviceInfo *info,
                                                         gint key,
                                                         guint keyval,
                                                         GdkModifierType modifiers);


gimp_device_info_get_curve ()

GimpCurve *         gimp_device_info_get_curve          (GimpDeviceInfo *info,
                                                         GdkAxisUse use);


gimp_device_info_map_axis ()

gdouble             gimp_device_info_map_axis           (GimpDeviceInfo *info,
                                                         GdkAxisUse use,
                                                         gdouble value);


gimp_device_info_changed ()

void                gimp_device_info_changed            (GimpDeviceInfo *info);


gimp_device_info_get_by_device ()

GimpDeviceInfo *    gimp_device_info_get_by_device      (GdkDevice *device);


gimp_device_info_compare ()

gint                gimp_device_info_compare            (GimpDeviceInfo *a,
                                                         GimpDeviceInfo *b);

Property Details

The "axes" property

  "axes"                     GValueArray*          : Read / Write / Construct


The "device" property

  "device"                   GdkDevice*            : Read / Write / Construct


The "display" property

  "display"                  GdkDisplay*           : Read / Write / Construct


The "keys" property

  "keys"                     GValueArray*          : Read / Write / Construct


The "mode" property

  "mode"                     GdkInputMode          : Read / Write / Construct

Default value: GDK_MODE_DISABLED


The "pressure-curve" property

  "pressure-curve"           GimpCurve*            : Read / Write

Signal Details

The "changed" signal

void                user_function                      (GimpDeviceInfo *gimpdeviceinfo,
                                                        gpointer        user_data)           : Run First

gimpdeviceinfo :

the object which received the signal.

user_data :

user data set when the signal handler was connected.