Lumberyard
User Guide (Version 1.16)

UILayoutRowComponent

Controls the grid layout of rows.

UiLayoutRowBus

Messages serviced by the UiLayoutRowComponent.

GetOrder

Returns the horizontal order for this layout.

Syntax

eUiHorizontalOrder GetOrder()

Following are possible values for eUiHorizontalOrder.

enum eUiHorizontalOrder { eUiHorizontalOrder_LeftToRight, eUiHorizontalOrder_RightToLeft };

GetPadding

Returns, in pixels, the padding inside the edges of the element.

Syntax

UiPadding GetPadding()

Following are possible values for UiPadding.

class UiPadding { int left; int right; int top; int bottom; };

GetSpacing

Returns, in pixels, the spacing between child elements.

Syntax

float GetSpacing()

SetOrder

Sets the horizontal order for this layout.

Syntax

void SetOrder(eUiHorizontalOrder order)

For possible values for eUiHorizontalOrder, see GetOrder.

SetPadding

Sets the padding inside the edges of the element to the specified number of pixels.

Syntax

void SetPadding(UiPadding padding)

For possible values for UiPadding, see GetPadding.

SetSpacing

Sets the spacing between child elements to the specified number of pixels.

Syntax

void SetSpacing(float spacing)

On this page: