|
Drag[en]gine Script Module DragonScript 1.32.1
|
Arrange widgets flowing along X or Y axis. More...
Classes | |
| enum | Stretch |
| Stretching. More... | |
Public Member Functions | |
| void | doLayout (Container container) |
| Layout widgets in container. | |
| Stretch | getStretch () |
| Stretch mode. | |
| FlowLayout | new (LayoutAxis axis) |
| Create layout stretching no widget with 0 gap. | |
| FlowLayout | new (LayoutAxis axis, int gap) |
| Create layout stretching no widget. | |
| FlowLayout | new (LayoutAxis axis, int gap, Stretch stretch) |
| Create layout. | |
| void | setStretch (Stretch stretch) |
| Set stretch mode. | |
Public Member Functions inherited from Dragengine.Gui.Layouts.BoxLayout | |
| void | addWidget (Widget widget, Object settings) |
| Add widget to layout using settings. | |
| LayoutAxis | getAxis () |
| Axis to arrange widgets along. | |
| int | getGap () |
| Gap between child widgets. | |
| 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. | |
| void | removeWidget (Widget widget) |
| Remove widget from layout. | |
| void | setAxis (LayoutAxis axis) |
| Set axis to arrange along. | |
| void | setGap (int gap) |
| Set gap between child widgets. | |
Public Attributes | |
| Stretch | pStretch |
Additional Inherited Members | |
Protected Member Functions inherited from Dragengine.Gui.Layouts.BoxLayout | |
| Point | getMinimumSizeFor (Container container, int width, int height) |
| Minimum size of layout using reference and variable size. | |
Arrange widgets flowing along X or Y axis.
Widgets are resized to their minimum size along axis. Extra space is optionally added to the last or first widget.
Instances of this layout can be shared by multiple widgets.
| void Dragengine.Gui.Layouts.FlowLayout.doLayout | ( | Container | container | ) |
Layout widgets in container.
Reimplemented from Dragengine.Gui.Layouts.BoxLayout.
| Stretch Dragengine.Gui.Layouts.FlowLayout.getStretch | ( | ) |
Stretch mode.
| FlowLayout Dragengine.Gui.Layouts.FlowLayout.new | ( | LayoutAxis | axis | ) |
Create layout stretching no widget with 0 gap.
Reimplemented from Dragengine.Gui.Layouts.BoxLayout.
| FlowLayout Dragengine.Gui.Layouts.FlowLayout.new | ( | LayoutAxis | axis, |
| int | gap | ||
| ) |
Create layout stretching no widget.
| gap | Gap between widgets. Can be negative to overlap widgets. |
Reimplemented from Dragengine.Gui.Layouts.BoxLayout.
| FlowLayout Dragengine.Gui.Layouts.FlowLayout.new | ( | LayoutAxis | axis, |
| int | gap, | ||
| Stretch | stretch | ||
| ) |
Create layout.
| gap | Gap between widgets. Can be negative to overlap widgets. |
| void Dragengine.Gui.Layouts.FlowLayout.setStretch | ( | Stretch | stretch | ) |
Set stretch mode.
| Stretch Dragengine.Gui.Layouts.FlowLayout.pStretch |