| Top |
| gboolean | has-keyboard | Read |
| gboolean | has-pointer | Read |
| gboolean | has-touch | Read |
| gchar * | name | Read |
| gchar * | sysname | Read |
GrxDevice is an abstract class the represents an input device such as a keyboard, mouse or touchscreen. Devices are normally handled internally in the library. So, this class is normally not used unless you need to differentiate between input events between individual devices (e.g. a a calibration program where you only want input from the device you are calibrating).
const gchar *
grx_device_get_name (GrxDevice *device);
Gets the “name” of the device.
const gchar *
grx_device_get_sysname (GrxDevice *device);
Gets the “sysname” of the device.
gboolean
grx_device_get_has_keyboard (GrxDevice *device);
Gets if the device has keyboard capabilities.
gboolean
grx_device_get_has_pointer (GrxDevice *device);
Gets if the device has mouse capabilities.
gboolean
grx_device_get_has_touch (GrxDevice *device);
Gets if the device has touch capabilities.
struct GrxDeviceClass {
GObjectClass parent_class;
gboolean (*reset_calibration) (GrxDevice *device);
gpointer reserved[6];
};
The type class struct for GrxDevice.
“has-keyboard” property“has-keyboard” gboolean
Indicates that a device can produce key events.
Flags: Read
Default value: FALSE
“has-pointer” property“has-pointer” gboolean
Indicates that a device can produce button/motion events.
Flags: Read
Default value: FALSE
“has-touch” property“has-touch” gboolean
Indicates that a device can produce touch events.
Flags: Read
Default value: FALSE
“name” property“name” gchar *
A descriptive name of the device, suitable for displaying to the user.
Flags: Read
Default value: NULL
“sysname” property“sysname” gchar *
The sysfs name of the device.
Flags: Read
Default value: NULL