25#ifndef TGUI_WIDGET_RENDERER_HPP
26#define TGUI_WIDGET_RENDERER_HPP
28#include <TGUI/Config.hpp>
29#include <TGUI/ObjectConverter.hpp>
30#include <TGUI/Loading/DataIO.hpp>
32#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
33 #include <unordered_set>
39TGUI_MODULE_EXPORT
namespace tgui
53 TGUI_NODISCARD
static std::shared_ptr<RendererData> create(
const std::map<String, ObjectConverter>& init = {});
56 TGUI_NODISCARD
static std::shared_ptr<RendererData> createFromDataIONode(
const DataIO::Node* rendererNode);
58 std::map<String, ObjectConverter> propertyValuePairs;
59 std::unordered_set<Widget*> observers;
60 Theme* connectedTheme =
nullptr;
61 bool themePropertiesInherited =
false;
226 void setData(std::shared_ptr<RendererData> data);
235 TGUI_NODISCARD std::shared_ptr<RendererData>
getData()
const;
242 TGUI_NODISCARD std::shared_ptr<RendererData>
clone()
const;
247 std::shared_ptr<RendererData> m_data = RendererData::create();
Wrapper around the backend-specific font. All copies of the font will share the same internal font re...
Definition Font.hpp:58
Implicit converter for settable properties.
Definition ObjectConverter.hpp:46
Wrapper class to store strings.
Definition String.hpp:96
This class can be used to manage the widget renderers.
Definition Theme.hpp:40
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
Shared data used in renderer classes.
Definition WidgetRenderer.hpp:48