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>
68 using BackendGui::handleEvent;
126 void updateContainerSize()
override;
137#if ((SDL_MAJOR_VERSION == 2) && (SDL_MINOR_VERSION < 26))
141 virtual void updateFramebufferSize() = 0;
147 SDL_Window* m_window =
nullptr;
150 bool m_touchFirstFingerDown =
false;
151 SDL_FingerID m_touchFirstFingerId = 0;
152 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
Wrapper for colors.
Definition: Color.hpp:63
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36