Widgets
Samples in this section illustrate the use of the GUI-Related classes.
UserInterface#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\UserInterface
WidgetCallbacks#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetCallbacks
WidgetCanvas#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetCanvas
WidgetDialog#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetDialog
WidgetExtern#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetExtern
WidgetLifetime#
The sample demonstrates managing the widget lifetime in three ways: while the world is loaded (LIFETIME_WORLD), while the window containing the widgets is open (LIFETIME_WINDOW), and while the engine is running (LIFETIME_ENGINE).
The main window named World Lifetime Widgets contains widgets with LIFETIME_WORLD — these widgets are deleted as the world is closed or reloaded. The console will display the corresponding callback messages (world hbox hierarchy removed, world user interface group removed, world button removed).
The widgets in the Window Lifetime Widgets window are deleted as soon as this window is closed. This action is also followed by the corresponding console messages.
The widgets in the Engine Lifetime Widgets window are only deleted on the engine shutdown. The corresponding callback messages can be seen in the log.txt file.
Manual managing (LIFETIME_MANUAL) of the widget lifetime is not illustrated in this sample.
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetLifetime
WidgetWindow#
SDK Location: C++ API > WIDGETS
SDK Path: <SDK_INSTALLATION>source\samples\Api\Widgets\WidgetWindow