Drag[en]gine Script Module DragonScript
1.23
|
Arrange content widget using the position value of two scrollbars. More...
Classes | |
enum | Area |
Area to place widget in. 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... | |
Widget | getContent () |
Content widget or null if not set. More... | |
int | getGap () |
Gap between areas in pixels. More... | |
ScrollBar | getHorizontalScrollBar () |
Horizontal scrollbar or null if not set. 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... | |
ScrollBar | getVerticalScrollBar () |
Vertical scrollbar or null if not set. More... | |
ScrollPanelLayout | new () |
Create layout with 0 gap. More... | |
ScrollPanelLayout | new (int gap) |
Create layout. More... | |
void | removeWidget (Widget widget) |
Remove widget from layout. More... | |
void | setGap (int gap) |
Set gap between areas in pixels. More... | |
Protected Member Functions | |
Point | getBaseMinimumSize (Container container) |
Reference size independend minimum size. More... | |
Arrange content widget using the position value of two scrollbars.
Instances of this layout can not be shared by multiple widgets.
void Dragengine.Gui.Layouts.ScrollPanelLayout.addWidget | ( | Widget | widget, |
Object | settings | ||
) |
Add widget to layout into area.
EInvalidParam | widget is null. |
Implements Dragengine.Gui.Layout.
void Dragengine.Gui.Layouts.ScrollPanelLayout.doLayout | ( | Container | container | ) |
Layout widgets in container.
Implements Dragengine.Gui.Layout.
Reference size independend minimum size.
Widget Dragengine.Gui.Layouts.ScrollPanelLayout.getContent | ( | ) |
Content widget or null if not set.
int Dragengine.Gui.Layouts.ScrollPanelLayout.getGap | ( | ) |
Gap between areas in pixels.
ScrollBar Dragengine.Gui.Layouts.ScrollPanelLayout.getHorizontalScrollBar | ( | ) |
Horizontal scrollbar or null if not set.
Minimal size required for layout in container.
Implements Dragengine.Gui.Layout.
Point Dragengine.Gui.Layouts.ScrollPanelLayout.getMinimumSizeForHeight | ( | Container | container, |
int | height | ||
) |
Minimum size of layout using reference widget height and variable width.
Implements Dragengine.Gui.Layout.
Point Dragengine.Gui.Layouts.ScrollPanelLayout.getMinimumSizeForWidth | ( | Container | container, |
int | width | ||
) |
Minimum size of layout using reference width and variable height.
Implements Dragengine.Gui.Layout.
ScrollBar Dragengine.Gui.Layouts.ScrollPanelLayout.getVerticalScrollBar | ( | ) |
Vertical scrollbar or null if not set.
ScrollPanelLayout Dragengine.Gui.Layouts.ScrollPanelLayout.new | ( | ) |
Create layout with 0 gap.
ScrollPanelLayout Dragengine.Gui.Layouts.ScrollPanelLayout.new | ( | int | gap | ) |
Create layout.
gap | Gap in pixels between areas. |
void Dragengine.Gui.Layouts.ScrollPanelLayout.removeWidget | ( | Widget | widget | ) |
Remove widget from layout.
Implements Dragengine.Gui.Layout.
void Dragengine.Gui.Layouts.ScrollPanelLayout.setGap | ( | int | gap | ) |
Set gap between areas in pixels.