TGUI
0.9.5
|
Base class for theme loader implementations. More...
#include <TGUI/Loading/ThemeLoader.hpp>
Public Member Functions | |
virtual | ~BaseThemeLoader ()=default |
Virtual destructor. | |
virtual void | preload (const String &primary) |
Optionally already do some work when only the primary parameter is known yet. | |
virtual const std::map< String, String > & | load (const String &primary, const String &secondary)=0 |
Loads the property-value pairs from the theme. | |
virtual bool | canLoad (const String &primary, const String &secondary)=0 |
Check if the requested property-value pairs are available. | |
Protected Member Functions | |
void | injectThemePath (const std::unique_ptr< DataIO::Node > &node, const String &path) const |
void | resolveReferences (std::map< String, std::reference_wrapper< const std::unique_ptr< DataIO::Node > > > §ions, const std::unique_ptr< DataIO::Node > &node) const |
Base class for theme loader implementations.
|
pure virtual |
Check if the requested property-value pairs are available.
primary | Primary parameter of the loader |
secondary | Secondary parameter of the loader |
For the default loader, the primary parameter is the filename while the secondary parameter is the section name.
Implemented in tgui::DefaultThemeLoader.
|
pure virtual |
Loads the property-value pairs from the theme.
primary | Primary parameter of the loader |
secondary | Secondary parameter of the loader |
For the default loader, the primary parameter is the filename while the secondary parameter is the section name.
Implemented in tgui::DefaultThemeLoader.
|
virtual |
Optionally already do some work when only the primary parameter is known yet.
primary | Primary parameter of the loader (filename of the theme file in DefaultThemeLoader) |
Reimplemented in tgui::DefaultThemeLoader.