Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Event_Global Union Reference
[The event system of Etk]


Detailed Description

The event structure sent to "global" callback (see etk_event_global_callback_add()).

Note:
For more information, see the documention page of the corresponding module (link above)


Data Fields

struct {
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   Etk_Position   pos
   unsigned int   timestamp
} mouse_move
struct {
   int   button
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   Etk_Mouse_Flags   flags
   Etk_Position   pos
   unsigned int   timestamp
} mouse_down
struct {
   int   button
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   Etk_Mouse_Flags   flags
   Etk_Position   pos
   unsigned int   timestamp
} mouse_up
struct {
   Etk_Wheel_Direction   direction
   int   z
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   Etk_Position   pos
   unsigned int   timestamp
} mouse_wheel
struct {
   char *   keyname
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   const char *   key
   const char *   string
   unsigned int   timestamp
} key_down
struct {
   char *   keyname
   Etk_Modifiers   modifiers
   Etk_Locks   locks
   const char *   key
   const char *   string
   unsigned int   timestamp
} key_up


Field Documentation

Etk_Modifiers Etk_Event_Global::modifiers

The keyboard modifiers active when the event has been emitted

Etk_Locks Etk_Event_Global::locks

The keyboard locks active when the event has been emitted

Etk_Position Etk_Event_Global::pos

The position of the mouse pointer

unsigned int Etk_Event_Global::timestamp

The timestamp when the event occured

struct { ... } Etk_Event_Global::mouse_move

The structure of a "mouse move" global event

int Etk_Event_Global::button

The button which has been pressed/released

Etk_Mouse_Flags Etk_Event_Global::flags

The flags corresponding the mouse click (single, double or triple click)

struct { ... } Etk_Event_Global::mouse_down

The structure of a "mouse down" global event

struct { ... } Etk_Event_Global::mouse_up

The structure of a "mouse down" global event The structure of a "mouse up" global event

Etk_Wheel_Direction Etk_Event_Global::direction

The direction of the mouse wheel event

int Etk_Event_Global::z

...,-2,-1 = down; 1,2,... = up

struct { ... } Etk_Event_Global::mouse_wheel

The structure of a "mouse wheel" global event

char* Etk_Event_Global::keyname

A name corresponding to the pressed/released key

const char* Etk_Event_Global::key

A name corresponding to the pressed/released key (unlike keyname, it takes the active modifiers into account

const char* Etk_Event_Global::string

The UTF-8 string corresponding to the pressed/released key (string to insert in an entry for example)

struct { ... } Etk_Event_Global::key_down

The structure of a "key down" global event

struct { ... } Etk_Event_Global::key_up

The structure of a "key down" global event The structure of a "key up" global event


The documentation for this union was generated from the following file:
  • etk_event.h