TGUI 1.13
Loading...
Searching...
No Matches
tgui::FormLoadOptions Struct Reference

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::PtrthemesByAlias
 Runtime themes keyed by alias name used in the form file.

Detailed Description

Options for loadWidgetsFromFile / loadWidgetsFromStream.

Member Data Documentation

◆ replaceExistingWidgets

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.

◆ themesByAlias

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.


The documentation for this struct was generated from the following file: