25#ifndef TGUI_BACKEND_SFML_GRAPHICS_INCLUDE_HPP
26#define TGUI_BACKEND_SFML_GRAPHICS_INCLUDE_HPP
28#include <TGUI/Config.hpp>
29#if !TGUI_HAS_BACKEND_SFML_GRAPHICS
30 #error "TGUI wasn't build with the SFML_GRAPHICS backend"
33#if TGUI_BUILD_AS_CXX_MODULE
34 import tgui.backend.window.sfml;
35 import tgui.backend.renderer.sfml_graphics;
36 import tgui.backend.font.sfml_graphics;
38 #include <TGUI/Backend/Window/SFML/BackendSFML.hpp>
39 #include <TGUI/Backend/Renderer/SFML-Graphics/BackendRendererSFML.hpp>
40 #include <TGUI/Backend/Font/SFML-Graphics/BackendFontSFML.hpp>
43#include <SFML/Graphics.hpp>
46 #include <SFML/Main.hpp>
49TGUI_MODULE_EXPORT
namespace tgui
51 inline namespace SFML_GRAPHICS
73 Gui(sf::RenderWindow& window)
89 Gui(sf::RenderTarget& target)
159 void updateContainerSize()
override;
165 sf::RenderTarget* m_target =
nullptr;
Definition BackendGuiSFML.hpp:45
Gui class for SFML (using sfml-graphics module for rendering and font)
Definition SFML-Graphics.hpp:57
Gui(sf::RenderTarget &target)
Constructor that immediately sets the render target on which the gui should be drawn.
Definition SFML-Graphics.hpp:89
void setWindow(sf::Window &window)
Sets the window which the gui should use.
void setTarget(sf::RenderTarget &target)
Sets the target on which the gui should be drawn.
void setWindow(sf::RenderWindow &window)
Sets the window on which the gui should be drawn.
void setTarget(sf::RenderWindow &window)
Sets the window on which the gui should be drawn.
TGUI_NODISCARD sf::RenderTarget * getTarget() const
Returns the render target on which the gui is being drawn.
Gui()=default
Default constructor.
Gui(sf::RenderWindow &window)
Constructor that immediately sets the window on which the gui should be drawn.
Definition SFML-Graphics.hpp:73
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39