|
TGUI 1.x-dev
|
Static Public Member Functions | |
| static void | setConstructFunction (const String &type, std::function< Widget::Ptr()> constructor) |
| Sets the construct function that will be used to create a widget when loading it. | |
| static std::function< Widget::Ptr()> | getConstructFunction (const String &type) |
| Retrieves the construct function that is used to create a widget when loading it. | |
| static std::vector< String > | getWidgetTypes () |
| Returns a list of all widget types for which a construct function exists. | |
|
staticnodiscard |
Retrieves the construct function that is used to create a widget when loading it.
| type | Type of the widget |
|
staticnodiscard |
Returns a list of all widget types for which a construct function exists.
|
static |
Sets the construct function that will be used to create a widget when loading it.
| type | Type of the widget |
| constructor | Function used to construct the widget (all TGUI widgets use std::make_shared<WidgetType>) |