|
TGUI 1.13
|
Options for loadWidgetsFromFile / loadWidgetsFromStream. More...
#include <TGUI/FormLoadOptions.hpp>
Public Attributes | |
| bool | replaceExistingWidgets = true |
| Remove existing widgets first if there are any. | |
| std::map< String, Theme::Ptr > | themesByAlias |
| Runtime themes keyed by alias name used in the form file. | |
Options for loadWidgetsFromFile / loadWidgetsFromStream.
| bool tgui::FormLoadOptions::replaceExistingWidgets = true |
Remove existing widgets first if there are any.
If true (default), removeAllWidgets() will be called at the start of the load function.
| std::map<String, Theme::Ptr> tgui::FormLoadOptions::themesByAlias |
Runtime themes keyed by alias name used in the form file.
When a widget line sets Renderer to @Alias or @Alias.Section, the renderer is taken from themesByAlias[Alias] (Section defaults to the widget type if omitted). If the alias is missing from this map, loading falls back to a matching Theme.Alias block in the same form file when present.