Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
void doLayout (Container container)
 Layout widgets in container.
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.
FixedLayout new ()
 Creat layout.
void removeWidget (Widget widget)
 Remove widget from layout.

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.

References addWidget().

Referenced by addWidget().

◆ doLayout()

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

Layout widgets in container.

Implements Dragengine.Gui.Layout.

Reimplemented in Dragengine.Gui.Layouts.FixedMinimalLayout, and Dragengine.Gui.Layouts.ViewportLayout.

References doLayout().

Referenced by doLayout().

◆ 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.

Referenced by getMinimumSizeForHeight(), and getMinimumSizeForWidth().

◆ 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.

References getMinimumSize(), getMinimumSizeForHeight(), getMinimumSizeForWidth(), and new().

Referenced by getMinimumSizeForHeight().

◆ 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.

References getMinimumSize().

Referenced by getMinimumSizeForHeight().

◆ new()

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

◆ removeWidget()

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

Remove widget from layout.

Implements Dragengine.Gui.Layout.

References removeWidget().

Referenced by removeWidget().


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