29#include <TGUI/Loading/ThemeLoader.hpp>
30#include <TGUI/Renderers/WidgetRenderer.hpp>
44 using Ptr = std::shared_ptr<Theme>;
195 static
void setDefault(const
String& primary = "");
203 static
void setDefault(std::shared_ptr<
Theme> theme);
209 static
void setDefault(std::nullptr_t);
220 static std::shared_ptr<
Theme> getDefault();
229 static
void addRendererInheritanceParent(const
String& widgetType, const
String& parentType);
248 static
void addRendererDefaultSubwidget(const
String& widgetType, const
String& property, const
String& propertyWidgetType);
267 static
void addRendererInheritedGlobalProperty(const
String& widgetType, const
String& property, const
String& globalProperty);
282 static std::map<
String,
String> m_rendererInheritanceParents;
284 static std::map<
String, std::map<
String,
String>> m_rendererInheritedGlobalProperties;
285 static std::shared_ptr<
Theme> m_defaultTheme;
Base class for theme loader implementations.
Definition: ThemeLoader.hpp:46
Implicit converter for settable properties.
Definition: ObjectConverter.hpp:48
Wrapper class to store strings.
Definition: String.hpp:79
This class can be used to manage the widget renderers.
Definition: Theme.hpp:41
std::shared_ptr< const Theme > ConstPtr
Shared constant widget pointer.
Definition: Theme.hpp:45
std::shared_ptr< Theme > Ptr
Shared widget pointer.
Definition: Theme.hpp:44
Theme(Theme &&) noexcept
Move constructor.
Theme(const String &primary="")
Constructs the theme class, with an optional theme file to load.
Theme(const Theme &)
Copy constructor.
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
Shared data used in renderer classes.
Definition: WidgetRenderer.hpp:47