|
Drag[en]gine Script Module DragonScript 1.35
|
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. | |
| void | doLayout (Container container) |
| Layout widgets in container. | |
| AspectRatio | getAspectRatio () |
| Aspect ratio mode. | |
| Point | getMinimumSize (Container container) |
| Minimal size required for layout in container. | |
| Point | getMinimumSizeForHeight (Container container, int height) |
| Minimum size of layout using reference widget height and variable width. | |
| Point | getMinimumSizeForWidth (Container container, int width) |
| Minimum size of layout using reference width and variable height. | |
| bool | getStretchIfSmaller () |
| Stretch widget if minimum size is less than the available space. | |
| StackLayout | new () |
| Create layout with AspectRatio.stretch aspect ratio mode. | |
| StackLayout | new (AspectRatio aspectRatio) |
| Create layout. | |
| StackLayout | new (AspectRatio aspectRatio, bool stretchIfSmaller) |
| Create layout. | |
| void | removeWidget (Widget widget) |
| Remove widget from layout. | |
| void | setAspectRatio (AspectRatio aspectRatio) |
| Set aspect ratio mode. | |
| void | setStretchIfSmaller (bool stretchIfSmaller) |
| Set to stretch widget if minimum size is less than the available space. | |
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.
References setStretchIfSmaller().
Referenced by getMinimumSize().
| void Dragengine.Gui.Layouts.StackLayout.doLayout | ( | Container | container | ) |
Layout widgets in container.
Implements Dragengine.Gui.Layout.
Referenced by getMinimumSizeForHeight().
| AspectRatio Dragengine.Gui.Layouts.StackLayout.getAspectRatio | ( | ) |
Aspect ratio mode.
Referenced by setAspectRatio().
Minimal size required for layout in container.
Implements Dragengine.Gui.Layout.
References addWidget().
| 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.
References doLayout(), and new().
Minimum size of layout using reference width and variable height.
Implements Dragengine.Gui.Layout.
References removeWidget().
| 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
Referenced by setStretchIfSmaller().
| StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | ) |
Create layout with AspectRatio.stretch aspect ratio mode.
References new().
Referenced by getMinimumSizeForHeight(), new(), new(), and new().
| StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | AspectRatio | aspectRatio | ) |
Create layout.
References new().
| StackLayout Dragengine.Gui.Layouts.StackLayout.new | ( | AspectRatio | aspectRatio, |
| bool | stretchIfSmaller ) |
| void Dragengine.Gui.Layouts.StackLayout.removeWidget | ( | Widget | widget | ) |
Remove widget from layout.
Implements Dragengine.Gui.Layout.
Referenced by getMinimumSizeForWidth().
| void Dragengine.Gui.Layouts.StackLayout.setAspectRatio | ( | AspectRatio | aspectRatio | ) |
Set aspect ratio mode.
References getAspectRatio(), and setAspectRatio().
Referenced by setAspectRatio().
| 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
References getStretchIfSmaller().
Referenced by addWidget().