TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface ILayoutAdapter in Tinman.AddOns.Rendering

One ILayoutAdapter object per layout axis is used by the LayoutGrid class.

interface ILayoutAdapter with <T>  
  base of LayoutAdapter

Methods

Align

Returns the alignment of the component in its layout grid cell.

method Align (T component)
type int32
params component The component.
returns 0:= left / top
1:= center
2:= right / bottom

Bounds

Updates the bounds of the given component.

method Bounds (T component, int32 position, int32 screenSize, int32 scrollSize)
params component The component.
  position The pixel position.
  screenSize The visible screen size, in pixels.
  scrollSize The scroll size, in pixels. Will always be equal to or greater than screenSize.

Children

Returns the children of the given component.

method Children (T parent)
type IVectorConst<T>
params parent The parent component.
returns [not-null] The children.

Fill

Shall the component be resized along the layout axis to fill its layout grid cell?

method Fill (T component)
type bool
params component The component.
returns true to fill the grid cell, false to keep the component size.

Grid

Returns the layout grid range of the component.

method Grid (T component)
type RangeI
params component The component.
returns The layout grid range.

Grow

Shall the layout grid cell that contains the given component grow when there is space left?

method Grow (T component)
type bool
params component The component.
returns true to grow when space is available, false to not grow.

Hidden

Is the component currently hidden?

method Hidden (T component)
type bool
params component The component.
returns true if hidden, false if visible.

Insets

Returns the insets of the given container.

method Insets (T container)
type Pair<int32, int32>
params container The container.
returns The insets.

Margin

Returns the margins of the given component.

method Margin (T component)
type Pair<int32, int32>
params component The component.
returns The margins.

Shrink

Shall the layout grid cell that contains the given component shrink when not enough space is left?

method Shrink (T component)
type bool
params component The component.
returns true to shrink when not enough space is available, false to not shrink.

SizeCurrent

Returns the current pixel size of the given component.

method SizeCurrent (T component)
type int32
params component The component.
returns The pixel size.

SizeRequested

Returns the requested size of the given component.

method SizeRequested (T component)
type int32
params component The component.
returns The requested size.