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
79 using BackendGui::handleEvent;
172 void updateContainerSize()
override;
178 sf::Window* m_window =
nullptr;
Definition BackendGuiSFML.hpp:45
~BackendGuiSFML()
Destructor.
sf::Window * getWindow() const
Returns the window that was provided to the gui.
bool handleEvent(sf::Event event)
Passes the event to the widgets.
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...
virtual void setGuiWindow(sf::Window &window)
Sets the window which the gui should use.
BackendGuiSFML()
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.
void startTextInput(FloatRect inputRect) override
This function is called by TGUI when focusing a text field (EditBox or TextArea). It will result in t...
void stopTextInput() override
This function is called by TGUI when unfocusing a text field (EditBox or TextArea)....
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