26#ifndef TGUI_BACKEND_GUI_SFML_HPP
27#define TGUI_BACKEND_GUI_SFML_HPP
29#include <TGUI/Config.hpp>
30#if TGUI_BUILD_AS_CXX_MODULE
33 #include <TGUI/Backend/Window/BackendGui.hpp>
36#include <SFML/Window.hpp>
40TGUI_MODULE_EXPORT
namespace tgui
73 using BackendGui::handleEvent;
138 void updateContainerSize()
override;
144 sf::Window* m_window =
nullptr;
Definition BackendGuiSFML.hpp:45
sf::Window * getWindow() const
Returns the window that was provided to the gui.
bool handleEvent(sf::Event event)
Passes the event to the widgets.
virtual void setGuiWindow(sf::Window &window)
Sets the window which the gui should use.
BackendGuiSFML()=default
Default constructor.
void mainLoop(Color clearColor={240, 240, 240}) override
Give the gui control over the main loop.
TGUI_NODISCARD bool convertEvent(const sf::Event &eventSFML, Event &eventTGUI)
Helper function that converts an SFML event to a TGUI event.
Base class for the Gui.
Definition BackendGui.hpp:48
Wrapper for colors.
Definition Color.hpp:72
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39