28#include <TGUI/Config.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
KeyPressed event parameters.
Definition Event.hpp:168
KeyboardKey code
Code of the key that has been pressed.
Definition Event.hpp:169
bool system
Is the System key pressed?
Definition Event.hpp:173
bool control
Is the Control key pressed?
Definition Event.hpp:171
bool alt
Is the Alt key pressed?
Definition Event.hpp:170
bool shift
Is the Shift key pressed?
Definition Event.hpp:172
MouseMoved event parameters.
Definition Event.hpp:188
int y
Y position of the mouse pointer, relative to the top of the owner window.
Definition Event.hpp:190
int x
X position of the mouse pointer, relative to the left of the owner window.
Definition Event.hpp:189
MouseWheelScrolled events parameters.
Definition Event.hpp:207
int x
X position of the mouse pointer, relative to the left of the owner window.
Definition Event.hpp:209
int y
Y position of the mouse pointer, relative to the top of the owner window.
Definition Event.hpp:210
float delta
Wheel offset (positive is up, negative is down). High-precision mice may use non-integral offsets.
Definition Event.hpp:208
Resized events parameters.
Definition Event.hpp:217
unsigned int width
New width, in pixels.
Definition Event.hpp:218
unsigned int height
New height, in pixels.
Definition Event.hpp:219
TextEntered event parameters.
Definition Event.hpp:180
char32_t unicode
UTF-32 Unicode value of the character.
Definition Event.hpp:181
Type type
Type of the event.
Definition Event.hpp:243
MouseButton
Mouse buttons.
Definition Event.hpp:149
@ Middle
The middle (wheel) mouse button.
KeyModifier
Modifiers keys.
Definition Event.hpp:157
MouseWheelEvent mouseWheel
Mouse wheel event parameters (Event::MouseWheelScrolled)
Definition Event.hpp:251
KeyboardKey
Keyboard key codes.
Definition Event.hpp:42
@ Numpad9
The numpad 9 key.
@ Numpad0
The numpad 0 key.
@ Subtract
The - key (minus from numpad)
@ RSystem
The right OS specific key (windows key / super key / command key)
@ 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 (windows key / super key / command key)
MouseMoveEvent mouseMove
Mouse move event parameters (Event::MouseMoved)
Definition Event.hpp:249
MouseButtonEvent mouseButton
Mouse button event parameters (Event::MouseButtonPressed, Event::MouseButtonReleased)
Definition Event.hpp:250
TextEvent text
Text event parameters (Event::TextEntered)
Definition Event.hpp:248
Type
Enumeration of the different types of events.
Definition Event.hpp:226
@ Closed
The window was closed (no data)
@ MouseEntered
The mouse cursor entered the content area of the window (no data)
@ 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)
@ MouseLeft
The mouse cursor left the content area of the window (no data)
@ 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:247
SizeEvent size
Size event parameters (Event::Resized)
Definition Event.hpp:252