Input Devices

Input Devices

Functions

guint grip_input_device_get_id ()
const gchar * grip_input_device_get_name ()
gboolean grip_input_device_is_direct ()
gboolean grip_input_device_is_independent ()
const GripAxisExtents * grip_input_device_get_x_extents ()
const GripAxisExtents * grip_input_device_get_y_extents ()

Properties

gpointer device-attrs Write / Construct Only
gpointer geis-device Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GripInputDevice

Description

The Grip input device represents input devices known to the gesture recognition stack.

Functions

grip_input_device_get_id ()

guint
grip_input_device_get_id (GripInputDevice *input_device);

Gets the internal identifier of the input device.

Parameters

input_device

A GripInputDevice.

[in]

Returns

the internal identifier of the input device


grip_input_device_get_name ()

const gchar *
grip_input_device_get_name (GripInputDevice *input_device);

Gets the name of the input device, as retrieved from the device itself.

Parameters

input_device

A GripInputDevice.

[in]

Returns

the seld-described name of the input device.


grip_input_device_is_direct ()

gboolean
grip_input_device_is_direct (GripInputDevice *input_device);

Indicates if the input device is a direct input device (eg. touchscreen) or not (eg. touchpad).

Parameters

input_device

A GripInputDevice.

[in]

Returns

TRUE if the input device is an direct device, FALSE otherwsie.


grip_input_device_is_independent ()

gboolean
grip_input_device_is_independent (GripInputDevice *input_device);

Indicates if the input device is an independent input device (for example, an Apple MagicMouse).

Parameters

input_device

A GripInputDevice.

[in]

Returns

TRUE if the input device is an independent device, FALSE otherwsie.


grip_input_device_get_x_extents ()

const GripAxisExtents *
grip_input_device_get_x_extents (GripInputDevice *input_device);

Parameters

input_device

A GripInputDevice.

[in]

Returns

the X-axis extents of the device.


grip_input_device_get_y_extents ()

const GripAxisExtents *
grip_input_device_get_y_extents (GripInputDevice *input_device);

Parameters

input_device

A GripInputDevice.

[in]

Returns

the Y-axis extents of the device.

Types and Values

GripInputDevice

typedef struct _GripInputDevice GripInputDevice;

This struct contains private data only, and should be accessed using the functions below.


GripInputDeviceClass

typedef struct {
        GObjectClass parent_class;
} GripInputDeviceClass;

Property Details

The “device-attrs” property

  “device-attrs”             gpointer

A list of GEIS v1 device attrs (passed into the device callback) used to construct a GripInputDevice.

Flags: Write / Construct Only


The “geis-device” property

  “geis-device”              gpointer

A GEIS v2 device object used to construct a GripInputDevice.

Flags: Write / Construct Only