An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.
GDK_AXIS_IGNORE the axis is ignored.
GDK_AXIS_X the axis is used as the x axis.
GDK_AXIS_Y the axis is used as the y axis.
GDK_AXIS_PRESSURE the axis is used for pressure information.
GDK_AXIS_XTILT the axis is used for x tilt information.
GDK_AXIS_YTILT the axis is used for x tilt information.
GDK_AXIS_LAST a constant equal to the numerically highest axis value.
|
Sets the key event generated when a macro button is pressed.
deviceid : the device to configure.
index : the index of the macro button.
keyval : the key value for the GdkKeypressEvent to generate. (a value of 0 means no event will be generated.)
modifiers : the modifier field for the generated GdkKeyPressEvent.
|
Returns information about the current position of the pointer within a window, including extended device information. Any of the return parameters may be NULL, in which case, they will be ignored.
window : a GdkWindow.
deviceid : a device ID.
x : location to store current x postion.
y : location to store current y postion.
pressure : location to store current pressure.
xtilt : location to store current tilt in the x direction.
ytilt : location to store current tilt in the y direction.
mask : location to store the current modifier state.
|
Retrieves the motion history for a given device/window pair.
window : a GdkWindow.
deviceid : the device for which to retrieve motion history.
start : the start time.
stop : the stop time.
nevents_return : location to store the number of events returned.
Returns : a newly allocated array containing all the events from start to stop. This array should be freed with g_free() when you are finished using it.
struct GdkTimeCoord
|
The GdkTimeCoord structure stores a single event in a motion history. It contains the following fields:
guint32 time The timestamp for this event.
gdouble x the x position.
gdouble y the y position.
gdouble pressure the pressure.
gdouble xtilt the tilt in the x direction.
gdouble ytilt the tilt in the y direction.
Key Values
Name
Key Values -- functions for manipulating keyboard codes.
Synopsis
|
Description
Key values are the codes which are sent whenever a key is pressed or released. They appear in the keyval field of the GdkEventKey structure, which is passed to signal handlers for the "key-press-event" and "key-release-event" signals. The complete list of key values can be found in the <gdk/gdkkeysyms.h> header file.
Key values can be converted into a string representation using gdk_keyval_name(). The reverse function, converting a string to a key value, is provided by gdk_keyval_from_name().
The case of key values can be determined using gdk_keyval_is_upper() and gdk_keyval_is_lower(). Key values can be converted to upper or lower case using gdk_keyval_to_upper() and gdk_keyval_to_lower().
Details