26#ifndef TGUI_WIDGET_RENDERER_HPP
27#define TGUI_WIDGET_RENDERER_HPP
30#include <TGUI/Config.hpp>
31#include <TGUI/ObjectConverter.hpp>
32#include <TGUI/Loading/DataIO.hpp>
34#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
35 #include <unordered_set>
41TGUI_MODULE_EXPORT
namespace tgui
55 TGUI_NODISCARD
static std::shared_ptr<RendererData> create(
const std::map<String, ObjectConverter>& init = {});
58 TGUI_NODISCARD
static std::shared_ptr<RendererData> createFromDataIONode(
const DataIO::Node* rendererNode);
60 std::map<String, ObjectConverter> propertyValuePairs;
61 std::unordered_set<Widget*> observers;
62 Theme* connectedTheme =
nullptr;
63 bool themePropertiesInherited =
false;
257 void setData(
const std::shared_ptr<RendererData>& data);
268 TGUI_NODISCARD std::shared_ptr<RendererData>
getData()
const;
277 TGUI_NODISCARD std::shared_ptr<RendererData>
clone()
const;
283 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:61
Implicit converter for settable properties.
Definition ObjectConverter.hpp:48
Wrapper class to store strings.
Definition String.hpp:101
This class can be used to manage the widget renderers.
Definition Theme.hpp:41
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39
Shared data used in renderer classes.
Definition WidgetRenderer.hpp:50