Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
KeyPressed event parameters.
Definition Event.hpp:167
KeyboardKey code
Code of the key that has been pressed.
Definition Event.hpp:168
bool system
Is the System key pressed?
Definition Event.hpp:172
bool control
Is the Control key pressed?
Definition Event.hpp:170
bool alt
Is the Alt key pressed?
Definition Event.hpp:169
bool shift
Is the Shift key pressed?
Definition Event.hpp:171
MouseMoved event parameters.
Definition Event.hpp:187
int y
Y position of the mouse pointer, relative to the top of the owner window.
Definition Event.hpp:189
int x
X position of the mouse pointer, relative to the left of the owner window.
Definition Event.hpp:188
MouseWheelScrolled events parameters.
Definition Event.hpp:206
int x
X position of the mouse pointer, relative to the left of the owner window.
Definition Event.hpp:208
int y
Y position of the mouse pointer, relative to the top of the owner window.
Definition Event.hpp:209
float delta
Wheel offset (positive is up, negative is down). High-precision mice may use non-integral offsets.
Definition Event.hpp:207
Resized events parameters.
Definition Event.hpp:216
unsigned int width
New width, in pixels.
Definition Event.hpp:217
unsigned int height
New height, in pixels.
Definition Event.hpp:218
TextEntered event parameters.
Definition Event.hpp:179
char32_t unicode
UTF-32 Unicode value of the character.
Definition Event.hpp:180
Type type
Type of the event.
Definition Event.hpp:240
MouseButton
Mouse buttons.
Definition Event.hpp:148
@ Middle
The middle (wheel) mouse button.
KeyModifier
Modifiers keys.
Definition Event.hpp:156
MouseWheelEvent mouseWheel
Mouse wheel event parameters (Event::MouseWheelScrolled)
Definition Event.hpp:248
KeyboardKey
Keyboard key codes.
Definition Event.hpp:41
@ Numpad9
The numpad 9 key.
@ Numpad0
The numpad 0 key.
@ Subtract
The - key (minus from numpad)
@ RSystem
The right OS specific key: window (Windows and Linux), apple (MacOS X), ...
@ Numpad7
The numpad 7 key.
@ Minus
The - key (hyphen)
@ Numpad6
The numpad 6 key.
@ Numpad4
The numpad 4 key.
@ Numpad3
The numpad 3 key.
@ Numpad5
The numpad 5 key.
@ LShift
The left Shift key.
@ Numpad8
The numpad 8 key.
@ RShift
The right Shift key.
@ LControl
The left Control key.
@ RControl
The right Control key.
@ Numpad1
The numpad 1 key.
@ Backspace
The Backspace key.
@ PageDown
The Page down key.
@ Enter
The Enter/Return keys.
@ Numpad2
The numpad 2 key.
@ LSystem
The left OS specific key: window (Windows and Linux), apple (MacOS X), ...
MouseMoveEvent mouseMove
Mouse move event parameters (Event::MouseMoved)
Definition Event.hpp:246
MouseButtonEvent mouseButton
Mouse button event parameters (Event::MouseButtonPressed, Event::MouseButtonReleased)
Definition Event.hpp:247
TextEvent text
Text event parameters (Event::TextEntered)
Definition Event.hpp:245
Type
Enumeration of the different types of events.
Definition Event.hpp:225
@ Closed
The window was closed.
@ Resized
The window was resized (data in event.size)
@ GainedFocus
The window gained the focus (no data)
@ MouseButtonPressed
A mouse button was pressed (data in event.mouseButton)
@ MouseButtonReleased
A mouse button was released (data in event.mouseButton)
@ LostFocus
The window lost the focus (no data)
@ TextEntered
A character was entered (data in event.text)
@ MouseWheelScrolled
The mouse wheel was scrolled (data in event.mouseWheel)
@ KeyPressed
A key was pressed (data in event.key)
@ MouseMoved
The mouse cursor moved (data in event.mouseMove)
KeyEvent key
Key event parameters (Event::KeyPressed)
Definition Event.hpp:244
SizeEvent size
Size event parameters (Event::Resized)
Definition Event.hpp:249