Libraries:Gtk:Gdk:Device
Types
T
Inherits from:Constants
Nil : T
Functions
FreeHistory(events @ Std.Object.T, n_events @ Std.Integer.SmallT) : Std.Object.T
Frees an array of Gtk.Gdk.TimeCoord.T that was returned by GetHistory.
Frees an array of Gtk.Gdk.TimeCoord.T that was returned by GetHistory.
events | an array of Gtk.Gdk.TimeCoord.T. [inout][transfer none] |
n_events | the length of the array. |
GetCorePointer() : Gtk.Gdk.Device.T
Returns the core pointer device for the default display.
Returns | the core pointer device; this is owned by the display and should not be freed. |
GetType() : Gtk.GObject.Type.T
Methods
:GetAxis(self @ T, axes @ Std.Object.T, use @ Gtk.Gdk.AxisUse.T, value @ Std.Object.T) : Std.Symbol.T
Interprets an array of double as axis values for a given device, and locates the value in the array for a given axis use.
device | a T |
axes | pointer to an array of axes |
use | the use to look for |
value | location to store the found value. |
Returns | TRUE if the given axis use was found, otherwise FALSE |
:GetAxisUse(self @ T, index @ Std.Integer.SmallT) : Gtk.Gdk.AxisUse.T
Returns the axis use for index.
device | a T. |
index | the index of the axis. |
Returns | a Gtk.Gdk.AxisUse.T specifying how the axis is used. |
:GetHasCursor(self @ T) : Std.Symbol.T
:GetHistory(self @ T, window @ Gtk.Gdk.Window.T, start @ Std.Integer.SmallT, stop @ Std.Integer.SmallT, events @ Std.Object.T, n_events @ Std.Object.T) : Std.Symbol.T
Obtains the motion history for a device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. Some windowing systems do not support motion history, in which case, FALSE will be returned. (This is not distinguishable from the case where motion history is supported and no events were found.)
device | a T |
window | the window with respect to which which the event coordinates will be reported |
start | starting timestamp for range of events to return |
stop | ending timestamp for the range of events to return |
events | location to store a newly-allocated array of Gtk.Gdk.TimeCoord.T, or NULL. [array length=n_events][out][transfer none] |
n_events | location to store the length of events, or NULL |
Returns | TRUE if the windowing system supports motion history and at least one event was found. |
:GetKey(self @ T, index @ Std.Integer.SmallT, keyval @ Std.Object.T, modifiers @ Std.Object.T) : Std.Object.T
If index has a valid keyval, this function will fill in keyval and modifiers with the keyval settings.
device | a T. |
index | the index of the macro button to get. |
keyval | return value for the keyval. |
modifiers | return value for modifiers. |
:GetMode(self @ T) : Gtk.Gdk.InputMode.T
:GetNAxes(self @ T) : Std.Integer.SmallT
:GetNKeys(self @ T) : Std.Integer.SmallT
:GetName(self @ T) : Std.String.T
:GetSource(self @ T) : Gtk.Gdk.InputSource.T
:GetState(self @ T, window @ Gtk.Gdk.Window.T, axes @ Std.Object.T, mask @ Std.Object.T) : Std.Object.T
Gets the current state of a device.
device | a T. |
window | a Gtk.Gdk.Window.T. |
axes | an array of doubles to store the values of the axes of device in, or NULL. |
mask | location to store the modifiers, or NULL. |
:SetAxisUse(self @ T, index_ @ Std.Integer.SmallT, use @ Gtk.Gdk.AxisUse.T) : Std.Object.T
Specifies how an axis of a device is used.
device | a T. |
index_ | the index of the axis. |
use | specifies how the axis is used. |
:SetKey(self @ T, index_ @ Std.Integer.SmallT, keyval @ Std.Integer.SmallT, modifiers @ Std.Integer.SmallT) : Std.Object.T
Specifies the X key event to generate when a macro button of a device is pressed.
device | a T. |
index_ | the index of the macro button to set. |
keyval | the keyval to generate. |
modifiers | the modifiers to set. |
:SetMode(self @ T, mode @ Gtk.Gdk.InputMode.T) : Std.Symbol.T
Sets a the mode of an input device. The mode controls if the device is active and whether the device's range is mapped to the entire screen or to a single window.
device | a T. |
mode | the input mode. |
Returns | TRUE if the mode was successfully changed. |