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#include <TGUI/Backend/Window/SFML/BackendSFML.hpp>
34#include <TGUI/Backend/Renderer/SFML-Graphics/BackendRendererSFML.hpp>
35#include <TGUI/Backend/Font/SFML-Graphics/BackendFontSFML.hpp>
37#include <SFML/Graphics.hpp>
40 #include <SFML/Main.hpp>
45 inline namespace SFML_GRAPHICS
67 Gui(sf::RenderWindow& window)
83 Gui(sf::RenderTarget& target)
153 void updateContainerSize()
override;
159 sf::RenderTarget* m_target =
nullptr;
163#ifndef TGUI_REMOVE_DEPRECATED_CODE
Definition: BackendGuiSFML.hpp:40
Gui class for SFML (using sfml-graphics module for rendering and font)
Definition: SFML-Graphics.hpp:51
Gui(sf::RenderTarget &target)
Constructor that immediately sets the render target on which the gui should be drawn.
Definition: SFML-Graphics.hpp:83
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 setWindow(sf::Window &window) override
Sets the window which the gui should use.
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:67
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36