Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

MMouseEvent Struct Reference
[MGui Events]

Mouse event. More...


Data Fields

int type
 Event type (E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_MOUSE_WHEEL).

Window window
 Window which the event is directed to.

int x
 pointer x, y coordinates in event window

int y
 pointer x, y coordinates in event window

int x_root
 coordinates relative to root

int y_root
 coordinates relative to root

unsigned int state
 buttons and key modifiers mask

unsigned int button
 button pressed/released (Button1, Button2 or Button3), 0 if no button involved

int scroll_delta
 scrolling lines (mouse wheel command)


Detailed Description

Mouse event.

This structure is used to notify the application about four type of events related to mouse (E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_MOUSE_WHEEL). You can get these events as callback parameter


Field Documentation

unsigned int MMouseEvent::button
 

button pressed/released (Button1, Button2 or Button3), 0 if no button involved

int MMouseEvent::scroll_delta
 

scrolling lines (mouse wheel command)

unsigned int MMouseEvent::state
 

buttons and key modifiers mask

int MMouseEvent::type
 

Event type (E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_MOUSE_WHEEL).

Window MMouseEvent::window
 

Window which the event is directed to.

int MMouseEvent::x
 

pointer x, y coordinates in event window

int MMouseEvent::x_root
 

coordinates relative to root

int MMouseEvent::y
 

pointer x, y coordinates in event window

int MMouseEvent::y_root
 

coordinates relative to root


Generated on Sun Jun 29 13:03:08 2003 for MGui API by doxygen1.3-rc2