26#ifndef TGUI_BACKEND_GUI_SDL_HPP
27#define TGUI_BACKEND_GUI_SDL_HPP
30#include <TGUI/GuiBase.hpp>
39 class BackendRenderTargetSDL;
91 using GuiBase::handleEvent;
145 void init()
override;
151 void updateContainerSize()
override;
157 std::shared_ptr<BackendRenderTargetSDL> m_renderTarget =
nullptr;
161 bool m_touchFirstFingerDown =
false;
162 SDL_FingerID m_touchFirstFingerId = 0;
163 SDL_TouchID m_touchFirstFingerTouchId = 0;
Base class for the Gui.
Definition GuiBase.hpp:45
Gui class for the SDL backend.
Definition GuiSDL.hpp:45
bool convertEvent(const SDL_Event &eventSDL, Event &eventTGUI)
Helper function that converts an SDL event to a TGUI event.
GuiSDL(SDL_Window *window)
Constructs the gui and set the window on which the gui should be drawn.
void draw() override
Draws all the widgets that were added to the gui.
GuiSDL()
Default constructor.
bool handleEvent(const SDL_Event &event)
Passes the event to the widgets.
void mainLoop() override
Give the gui control over the main loop.
void setWindow(SDL_Window *window)
Sets the window on which the gui should be drawn.
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36