Drag[en]gine Script Module DragonScript
1.23
|
Arrange widgets to fill the entire container fully covering each other. More...
Classes | |
enum | AspectRatio |
Aspect ratio behavior. More... | |
Public Member Functions | |
void | addWidget (Widget widget, Object settings) |
Add widget to layout into area. More... | |
void | doLayout (Container container) |
Layout widgets in container. More... | |
AspectRatio | getAspectRatio () |
Aspect ratio mode. More... | |
Point | getMinimumSize (Container container) |
Minimal size required for layout in container. More... | |
Point | getMinimumSizeForHeight (Container container, int height) |
Minimum size of layout using reference widget height and variable width. More... | |
Point | getMinimumSizeForWidth (Container container, int width) |
Minimum size of layout using reference width and variable height. More... | |
bool | getStretchIfSmaller () |
Stretch widget if minimum size is less than the available space. More... | |
StackLayout | new () |
Create layout with AspectRatio.stretch aspect ratio mode. More... | |
StackLayout | new (AspectRatio aspectRatio) |
Create layout. More... | |
StackLayout | new (AspectRatio aspectRatio, bool stretchIfSmaller) |
Create layout. More... | |
void | removeWidget (Widget widget) |
Remove widget from layout. More... | |
void | setAspectRatio (AspectRatio aspectRatio) |
Set aspect ratio mode. More... | |
void | setStretchIfSmaller (bool stretchIfSmaller) |
Set to stretch widget if minimum size is less than the available space. More... | |
Arrange widgets to fill the entire container fully covering each other.
Widgets should be transparent for this layout to work best.
Instances of this layout can be shared by multiple widgets.
void Dragengine.Gui.Layouts.StackLayout.addWidget | ( | Widget | widget, |
Object | settings | ||
) |
Add widget to layout into area.
widget | Widget to add to layout. |
settings | Not used. |
EInvalidParam | widget is null. |
Implements Dragengine.Gui.Layout.
void Dragengine.Gui.Layouts.StackLayout.doLayout | ( | Container | container | ) |
Layout widgets in container.
Implements Dragengine.Gui.Layout.
AspectRatio Dragengine.Gui.Layouts.StackLayout.getAspectRatio | ( | ) |
Aspect ratio mode.
Minimal size required for layout in container.
Implements Dragengine.Gui.Layout.
Point Dragengine.Gui.Layouts.StackLayout.getMinimumSizeForHeight | ( | Container | container, |
int | height | ||
) |
Minimum size of layout using reference widget height and variable width.
Implements Dragengine.Gui.Layout.
Minimum size of layout using reference width and variable height.
Implements Dragengine.Gui.Layout.
bool Dragengine.Gui.Layouts.StackLayout.getStretchIfSmaller | ( | ) |
Stretch widget if minimum size is less than the available space.
Used only if aspect ratio is not AspectRatio.stretch
StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | ) |
Create layout with AspectRatio.stretch aspect ratio mode.
StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | AspectRatio | aspectRatio | ) |
Create layout.
StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | AspectRatio | aspectRatio, |
bool | stretchIfSmaller | ||
) |
Create layout.
void Dragengine.Gui.Layouts.StackLayout.removeWidget | ( | Widget | widget | ) |
Remove widget from layout.
Implements Dragengine.Gui.Layout.
void Dragengine.Gui.Layouts.StackLayout.setAspectRatio | ( | AspectRatio | aspectRatio | ) |
Set aspect ratio mode.
void Dragengine.Gui.Layouts.StackLayout.setStretchIfSmaller | ( | bool | stretchIfSmaller | ) |
Set to stretch widget if minimum size is less than the available space.
Used only if aspect ratio is not AspectRatio.stretch