-
-
Notifications
You must be signed in to change notification settings - Fork 53
AddWidget
otvv edited this page Jul 19, 2020
·
7 revisions
This function adds a new WIdget into the Widgets container. In other words it will add a new Widget into the menu.
This function takes a std::shared_ptr<FGUI::CWidget>
as an argument.
The argument is: The instance (pointer) of the widget (control) that you want to add.
List of widgets that is using this function:
Container
Here's how you can add a new Widget:
buildrPattern.Widget(MyWidget).Title("Widget Title").(...).SpawnIn(Container);
NOTE: (...)
are the rest of the functions that you need to set up a widget (Position, Size, Font, etc)
NOTE: "MyWidget" can be any widget.
NOTE: You can spawn your widget inside any Container.
You can also read the library comments/functions for additional info.