ILayoutAdapter

Description

interface Tinman.Engine.Drawing.ILayoutAdapter<T>

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

Public / Methods

Align


public method Align → (1)

component in : T

The component.

returns → int32

0 : left / top
1 : center
2 : right / bottom

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

Baseline


public method Baseline → (1)

component in : T

The component.

returns → int32

The baseline distance or 0 if the component is not aligned to the baseline.

Returns the baseline distance of the given component.

Bounds


public method Bounds → (4)

component in : T

The component.

position in : int32

The pixel position.

screenSize in : int32

The visible screen size, in pixels.

scrollSize in : int32

The scroll size, in pixels. Will always be equal to or greater than screenSize in.

Updates the bounds of the given component.

Children


public method Children → (1)

parent in : T

The parent component.

returns → IVectorConst<T>

The children.

Returns the children of the given component.

Fill


public method Fill → (1)

component in : T

The component.

returns → bool

true to fill the grid cell, false to keep the component size.

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

Grid


public method Grid → (1)

component in : T

The component.

returns → RangeI

The layout grid range.

Returns the layout grid range of the component.

Grow


public method Grow → (1)

component in : T

The component.

returns → bool

true to grow when space is available, false to not grow.

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

Hidden


public method Hidden → (1)

component in : T

The component.

returns → bool

true if hidden, false if visible.

Is the component currently hidden?

Insets


public method Insets → (1)

container in : T

The container.

returns → Pair<int32, int32>

The insets.

Returns the insets of the given container.

Margin


public method Margin → (1)

component in : T

The component.

returns → Pair<int32, int32>

The margins.

Returns the margins of the given component.

Shrink


public method Shrink → (1)

component in : T

The component.

returns → bool

true to shrink when not enough space is available, false to not shrink.

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

Size​Current


public method SizeCurrent → (1)

component in : T

The component.

returns → int32

The pixel size.

Returns the current pixel size of the given component.

Size​Limit


public method SizeLimit → (1)

component in : T

The component.

returns → int32

The size limit.

Returns the size limit of the given component.

Size​Requested


public method SizeRequested → (1)

component in : T

The component.

returns → int32

The requested size.

Returns the requested size of the given component.