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 #include <TGUI/Backend/Window/SFML/BackendSFML.hpp>
35 #include <TGUI/Backend/Renderer/SFML-Graphics/BackendRendererSFML.hpp>
36 #include <TGUI/Backend/Font/SFML-Graphics/BackendFontSFML.hpp>
39#include <SFML/Graphics.hpp>
42 #include <SFML/Main.hpp>
45TGUI_MODULE_EXPORT
namespace tgui
47 inline namespace SFML_GRAPHICS
68 Gui(sf::RenderWindow& window)
83 Gui(sf::RenderTarget& target)
147 void updateContainerSize()
override;
152 sf::RenderTarget* m_target =
nullptr;
Definition BackendGuiSFML.hpp:42
Gui class for SFML (using sfml-graphics module for rendering and font)
Definition SFML-Graphics.hpp:53
Gui(sf::RenderTarget &target)
Constructor that immediately sets the render target on which the gui should be drawn.
Definition SFML-Graphics.hpp:83
void setWindow(sf::Window &window)
Sets the window which the gui should use.
sf::RenderTarget * getTarget() const
Returns the render target on which the gui is being drawn.
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.
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:68
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38