Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.Layouts.FixedLayout Class Reference

Does not arrange nor resize widgets. More...

Inheritance diagram for Dragengine.Gui.Layouts.FixedLayout:
Dragengine.Gui.Layout Dragengine.Gui.Layouts.FixedMinimalLayout Dragengine.Gui.Layouts.ViewportLayout

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 Dragengine.Gui.Layouts.FixedLayout.addWidget ( Widget  widget,
Object  settings 
)

Add widget to layout using settings.

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

Implements Dragengine.Gui.Layout.

◆ doLayout()

void Dragengine.Gui.Layouts.FixedLayout.doLayout ( Container  container)

◆ getMinimumSize()

Point Dragengine.Gui.Layouts.FixedLayout.getMinimumSize ( Container  container)

Minimal size required for layout in container.

Implements Dragengine.Gui.Layout.

Reimplemented in Dragengine.Gui.Layouts.FixedMinimalLayout.

◆ getMinimumSizeForHeight()

Point Dragengine.Gui.Layouts.FixedLayout.getMinimumSizeForHeight ( Container  container,
int  height 
)

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

Implements Dragengine.Gui.Layout.

Reimplemented in Dragengine.Gui.Layouts.FixedMinimalLayout.

◆ getMinimumSizeForWidth()

Point Dragengine.Gui.Layouts.FixedLayout.getMinimumSizeForWidth ( Container  container,
int  width 
)

Minimum size of layout using reference width and variable height.

Implements Dragengine.Gui.Layout.

Reimplemented in Dragengine.Gui.Layouts.FixedMinimalLayout.

◆ new()

FixedLayout Dragengine.Gui.Layouts.FixedLayout.new ( )

◆ removeWidget()

void Dragengine.Gui.Layouts.FixedLayout.removeWidget ( Widget  widget)

Remove widget from layout.

Implements Dragengine.Gui.Layout.


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