25#ifndef TGUI_BACKEND_GUI_RAYLIB_HPP
26#define TGUI_BACKEND_GUI_RAYLIB_HPP
28#include <TGUI/Config.hpp>
29#if !TGUI_BUILD_AS_CXX_MODULE
30 #include <TGUI/Backend/Window/BackendGui.hpp>
37TGUI_MODULE_EXPORT
namespace tgui
188 void updateContainerSize()
override;
193 bool m_mouseOnWindow =
true;
194 bool m_endMainLoop =
false;
Definition BackendGuiRaylib.hpp:43
BackendGuiRaylib()
Default constructor.
~BackendGuiRaylib()
Destructor.
bool handleKeyPressed(int pressedKey)
Passes the key press event to the focused widget.
bool isKeyboardModifierPressed(Event::KeyModifier modifierKey) const override
Checks the state for one of the modifier keys.
bool handleEvents()
Processes events that occured during the last frame and passes the event to the widgets.
void endMainLoop()
Breaks out of the main loop that is implemented inside the mainLoop function.
void mainLoop(Color clearColor={240, 240, 240}) override
Give the gui control over the main loop.
bool handleCharPressed(int pressedChar)
Passes the typed character to the focused widget.
void updateTextCursorPosition(FloatRect inputRect, Vector2f caretPos) override
This function is called by TGUI when the position of the caret changes in a text field (EditBox or Te...
std::vector< Event > generateEventQueue(bool processKeyEvents)
Processes events that occured during the last frame and turns them into TGUI events for handleEvent.
Base class for the Gui.
Definition BackendGui.hpp:47
Wrapper for colors.
Definition Color.hpp:73
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
KeyModifier
Modifiers keys.
Definition Event.hpp:157