#include <fastgl.h>
Collaboration diagram for fgl::FGEvent:

bgroup.cpp, bitmap.cpp, buttons.cpp, calc.cpp, events.cpp, gears16.cpp, geartrain.cpp, gradient.cpp, listbox.cpp, mandel.cpp, tabpage.cpp, timer.cpp, and updown.cpp.
Public Member Functions | |
| int | GetObjectType (void) const |
| FGEvent (int T=NOEVENT, int K=0, int X=0, int Y=0, int W=0, int H=0) | |
| int | GetKey (void) const |
| const char * | GetName (void) const |
| int | GetType (void) const |
| int | GetButtons (void) const |
| int | GetX (void) const |
| int | GetY (void) const |
| int | GetW (void) const |
| int | GetH (void) const |
Static Public Member Functions | |
| static const char * | GetKeySymbolName (unsigned int code) |
Public Attributes | |
| FGWindow * | wnd |
| FGControl * | accel |
|
||||||||||||||||||||||||||||
|
Create the event of appropriate type. In the most cases, you will parse system events only. Creating of the events by the hand and sending them to other windows is less frequently. The response to the system events is adjusted into separate window procedures, each per window. This procedure is fact a one big switch statement with many cases. |
|
|
Returns an OR-ed value of the all mouse's buttons that are pushed. There are these symbolic values for buttons:
|
|
|
Returns a width.
|
|
|
Returns the value of key member of class FGEvent. As for event KEYEVENT, it return a key code.
|
|
|
Returns symbolic name of keycode as ASCIIZ string.
|
|
|
Return a text string, which identified the name of events, or string "NONSENSE".
|
|
|
This is assigned for ACCELEVENT only. It contains the type of controls. Normally it is unnecessary. The types are enum ObjectType { WINDOW, CHECKBUTTON, e.g. |
|
|
Returns type of the event.
|
|
|
Returns a width.
|
|
|
Returns x co-ordination for events that initialise this member (MOVEEVENT, CLICKLEFTEVENT).
|
|
|
Returns y co-ordination for events that initialise this member (MOVEEVENT, CLICKLEFTEVENT).
|
|
|
This is a public member of FGEvent class and it is initialised for window procedures only and ACCELEVENT only. It contains the pointer at the Controls that emit this event. |
|
|
This is a public member of FGEvent class and it is initialised for window procedures only. It contains the pointer at the target window. It is useful when one procedure is assigned to more windows. Using of this member is in general better, than global pointers. |
1.4.0