Support Forum G3D Web Page |
General low-level event structure.
More...
Public Member Functions | |
bool | isMouseEvent () const |
Point2 | mousePosition () const |
const OSWindow * | osWindow () const |
String | toString () const |
Public Attributes | |
ActiveEvent | active |
MouseButtonEvent | button |
CharInputEvent | character |
FileDropEvent | drop |
ExposeEvent | expose |
FocusEvent | focus |
GuiEvent | gui |
GuiCloseEvent | guiClose |
JoyAxisEvent | jaxis |
JoyBallEvent | jball |
JoyButtonEvent | jbutton |
JoyHatEvent | jhat |
KeyboardEvent | key |
MouseMotionEvent | motion |
QuitEvent | quit |
ResizeEvent | resize |
MouseScroll2DEvent | scroll2d |
uint8 | type |
This is a G3D::GEventType, but is given uint8 type so that it does not call the constructor because GEvent is a union. More... | |
UserEvent | user |
General low-level event structure.
Event Dispatch Overview:
Most event processing code looks like:
switch (event.type) { case GEventType::MOUSEBUTTONDOWN: ... break; ... }
bool G3D::GEvent::isMouseEvent | ( | ) | const |
Point2 G3D::GEvent::mousePosition | ( | ) | const |
|
inline |
String G3D::GEvent::toString | ( | ) | const |
ActiveEvent G3D::GEvent::active |
Referenced by osWindow().
MouseButtonEvent G3D::GEvent::button |
CharInputEvent G3D::GEvent::character |
FileDropEvent G3D::GEvent::drop |
ExposeEvent G3D::GEvent::expose |
FocusEvent G3D::GEvent::focus |
GuiEvent G3D::GEvent::gui |
GuiCloseEvent G3D::GEvent::guiClose |
JoyAxisEvent G3D::GEvent::jaxis |
JoyBallEvent G3D::GEvent::jball |
JoyButtonEvent G3D::GEvent::jbutton |
JoyHatEvent G3D::GEvent::jhat |
KeyboardEvent G3D::GEvent::key |
MouseMotionEvent G3D::GEvent::motion |
QuitEvent G3D::GEvent::quit |
ResizeEvent G3D::GEvent::resize |
MouseScroll2DEvent G3D::GEvent::scroll2d |
uint8 G3D::GEvent::type |
This is a G3D::GEventType, but is given uint8 type so that it does not call the constructor because GEvent is a union.
UserEvent G3D::GEvent::user |