Drag[en]gine Script Module DragonScript Script API  1.0
Layout Interface Reference

Interface knowing how to arrange child widgets in Container. More...

Inheritance diagram for Layout:
BorderLayout BoxLayout FixedLayout FormLayout GridLayout ScrollPanelLayout StackLayout TabLayout

Public Member Functions

void addWidget (Widget widget, Object settings)
 Add widget to layout using settings. More...
 
void doLayout (Container container)
 Layout widgets in container. 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...
 
void removeWidget (Widget widget)
 Remove widget from layout. More...
 

Detailed Description

Interface knowing how to arrange child widgets in Container.

Member Function Documentation

§ addWidget()

void addWidget ( Widget  widget,
Object  settings 
)

Add widget to layout using settings.

Parameters
widgetWidget to add to layout.
settingsSettings for widget. Can be null.

Implemented in FormLayout, BorderLayout, GridLayout, BoxLayout, ScrollPanelLayout, StackLayout, TabLayout, and FixedLayout.

§ doLayout()

§ getMinimumSize()

Point getMinimumSize ( Container  container)

Minimal size required for layout in container.

Implemented in FormLayout, BorderLayout, GridLayout, BoxLayout, ScrollPanelLayout, StackLayout, TabLayout, FixedLayout, and FixedMinimalLayout.

§ getMinimumSizeForHeight()

Point getMinimumSizeForHeight ( Container  container,
int  height 
)

Minimum size of layout using reference widget height and variable width.

Implemented in FormLayout, BorderLayout, GridLayout, BoxLayout, ScrollPanelLayout, StackLayout, TabLayout, FixedLayout, and FixedMinimalLayout.

§ getMinimumSizeForWidth()

Point getMinimumSizeForWidth ( Container  container,
int  width 
)

Minimum size of layout using reference width and variable height.

Implemented in FormLayout, BorderLayout, GridLayout, BoxLayout, ScrollPanelLayout, StackLayout, TabLayout, FixedLayout, and FixedMinimalLayout.

§ removeWidget()

void removeWidget ( Widget  widget)

Remove widget from layout.

Implemented in FormLayout, BorderLayout, GridLayout, BoxLayout, ScrollPanelLayout, StackLayout, TabLayout, and FixedLayout.


The documentation for this interface was generated from the following file: