Top | ![]() |
![]() |
![]() |
![]() |
These definitions are used to give a library and plateform independent simplified event handlers.
gboolean tool_simplified_events_new_fromGdk (ToolSimplifiedEvents *ev
,const GdkEvent *event
);
Transfer the given event
into the internal ev
structure.
Since: 3.7
Value that can be put into field buttonType of structure ToolSimplifiedEvents.
struct ToolSimplifiedEvents { int x, y; int root_x, root_y; guint button; ToolButtonActionId buttonType; gboolean shiftMod, controlMod; gboolean motion; char letter; ToolSpecialKeyStroke specialKey; };
This structure is a common interface for events (inspired from X). We don't use the one introduced by GDK because we don't want this dependency be a limitation.
the position x (on parent) for the event ; |
||
the position y (on parent) for the event ; |
||
the position x (in root window) for the event ; |
||
the position y (in root window) for the event ; |
||
guint |
the number of the button, 0 if not a button event ; |
|
ToolButtonActionId |
||
gboolean |
TRUE if Shift key is pressed during the event ; |
|
gboolean |
TRUE if Control key is pressed during the event ; |
|
gboolean |
TRUE if the event is a motion ; |
|
The value of the letter if the event is a key stroke '\0' if not ; |
||
ToolSpecialKeyStroke |
the value of a special key if the event is a key stroke but not with an ascii letter. |