Drag[en]gine Script Module DragonScript Script API  1.0
FixedLayout Class Reference

Does not arrange nor resize widgets. More...

Inheritance diagram for FixedLayout:
Layout FixedMinimalLayout

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...
 
FixedLayout new ()
 Creat layout. More...
 
void removeWidget (Widget widget)
 Remove widget from layout. More...
 

Detailed Description

Does not arrange nor resize widgets.

Instances of this layout can be shared by multiple widgets.

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.

Implements Layout.

§ doLayout()

void doLayout ( Container  container)

Layout widgets in container.

Implements Layout.

§ getMinimumSize()

Point getMinimumSize ( Container  container)

Minimal size required for layout in container.

Implements Layout.

§ getMinimumSizeForHeight()

Point getMinimumSizeForHeight ( Container  container,
int  height 
)

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

Implements Layout.

§ getMinimumSizeForWidth()

Point getMinimumSizeForWidth ( Container  container,
int  width 
)

Minimum size of layout using reference width and variable height.

Implements Layout.

§ new()

FixedLayout new ( )

Creat layout.

§ removeWidget()

void removeWidget ( Widget  widget)

Remove widget from layout.

Implements Layout.


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