26#ifndef TGUI_BACKEND_GUI_SDL_HPP
27#define TGUI_BACKEND_GUI_SDL_HPP
29#include <TGUI/Backend/Window/BackendGui.hpp>
30#include <TGUI/extlibs/IncludeSDL.hpp>
126 void updateContainerSize()
override;
141 SDL_Window* m_window =
nullptr;
143 bool m_touchFirstFingerDown =
false;
144 SDL_FingerID m_touchFirstFingerId = 0;
145 SDL_TouchID m_touchFirstFingerTouchId = 0;
Definition: BackendGuiSDL.hpp:40
void mainLoop(Color clearColor={240, 240, 240}) override
Give the gui control over the main loop.
BackendGuiSDL()=default
Default constructor.
void setGuiWindow(SDL_Window *window)
Sets the window on which the gui should be drawn.
bool convertEvent(const SDL_Event &eventSDL, Event &eventTGUI)
Helper function that converts an SDL event to a TGUI event.
bool handleEvent(const SDL_Event &event)
Passes the event to the widgets.
virtual void presentScreen()=0
Shows the drawn content with SDL_GL_SwapWindow or SDL_RenderPresent, depending on the renderer.
Base class for the Gui.
Definition: BackendGui.hpp:45
bool handleEvent(Event event)
Passes the event to the widgets.
Wrapper for colors.
Definition: Color.hpp:63
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36