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

class LayoutAdapter in Tinman.AddOns.Rendering

Abstract base class for ILayoutAdapter.

abstract class LayoutAdapter with <T>  
  implements ILayoutAdapter<T>

Public / Methods

Align

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

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

Bounds

Updates the bounds of the given component.

public abstract 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.
implements ILayoutAdapter.Bounds

Children

Returns the children of the given component.

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

Fill

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

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

Grid

Returns the layout grid range of the component.

public abstract method Grid (T component)
type RangeI
params component The component.
returns The layout grid range.
implements ILayoutAdapter.Grid

Grow

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

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

Hidden

Is the component currently hidden?

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

Insets

Returns the insets of the given container.

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

Margin

Returns the margins of the given component.

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

Shrink

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

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

SizeCurrent

Returns the current pixel size of the given component.

public abstract method SizeCurrent (T component)
type int32
params component The component.
returns The pixel size.
implements ILayoutAdapter.SizeCurrent

SizeRequested

Returns the requested size of the given component.

public abstract method SizeRequested (T component)
type int32
params component The component.
returns The requested size.
implements ILayoutAdapter.SizeRequested