-
Notifications
You must be signed in to change notification settings - Fork 10
BoxContainer
mdavisprog edited this page Apr 5, 2023
·
2 revisions
BoxContainers will lay out controls in either horizontal or vertical orientation in sequential order. The container bounds can also grow from the beginning, the center, or the end which will align the controls based on the orientation.
Controls requested to expand will also be given the space to expand based on the amount of remaining space left after all other non-expanded controls are placed.
Spacing between each control can be defined or can be packed tightly if set to zero.
Name | Description |
---|---|
OnLoad | A Window may have its controls defined within a JSON stream. The Window will parse the stream into a hierarchy of JSON objects and is passed to each control to give them an opportunity to load any properties that define the control. The stream can come from a list of places such as a disk, memory, or network stream. RootThe Json object containing the properties to load for this control. |
OnSave | This may be called from any number of places which may wish to get information about controls. This JSON object can then be used to serialize the information to disk or be displayed in some other output device. RootThe Json object to write properties of this control into. |