unreal.GridSlot

class unreal.GridSlot(outer=None, name='None')

Bases: unreal.PanelSlot

A slot for UGridPanel, these slots all share the same size as the largest slot in the grid.

C++ Source:

  • Module: UMG

  • File: GridSlot.h

Editor Properties: (see get_editor_property/set_editor_property)

  • column (int32): [Read-Write] The column index of the cell this slot is in

  • column_span (int32): [Read-Write] Column Span

  • horizontal_alignment (HorizontalAlignment): [Read-Write] The alignment of the object horizontally.

  • layer (int32): [Read-Write] Positive values offset this cell to be hit-tested and drawn on top of others. Default is 0; i.e. no offset.

  • nudge (Vector2D): [Read-Write] Offset this slot’s content by some amount; positive values offset to lower right

  • padding (Margin): [Read-Write] The padding area between the slot and the content it contains.

  • row (int32): [Read-Write] The row index of the cell this slot is in

  • row_span (int32): [Read-Write] Row Span

  • vertical_alignment (VerticalAlignment): [Read-Write] The alignment of the object vertically.

property column

[Read-Only] The column index of the cell this slot is in

Type

(int32)

property column_span

[Read-Only] Column Span

Type

(int32)

property horizontal_alignment

[Read-Only] The alignment of the object horizontally.

Type

(HorizontalAlignment)

property layer

[Read-Only] Positive values offset this cell to be hit-tested and drawn on top of others. Default is 0; i.e. no offset.

Type

(int32)

property nudge

[Read-Only] Offset this slot’s content by some amount; positive values offset to lower right

Type

(Vector2D)

property padding

[Read-Only] The padding area between the slot and the content it contains.

Type

(Margin)

property row

[Read-Only] The row index of the cell this slot is in

Type

(int32)

property row_span

[Read-Only] Row Span

Type

(int32)

set_column(column)None

Sets the column index of the slot, this determines what cell the slot is in the panel

Parameters

column (int32) –

set_column_span(column_span)None

How many columns this slot spans over

Parameters

column_span (int32) –

set_horizontal_alignment(horizontal_alignment)None

Set Horizontal Alignment

Parameters

horizontal_alignment (HorizontalAlignment) –

set_layer(layer)None

Sets positive values offset this cell to be hit-tested and drawn on top of others.

Parameters

layer (int32) –

set_nudge(nudge)None

Sets the offset for this slot’s content by some amount; positive values offset to lower right

Parameters

nudge (Vector2D) –

set_padding(padding)None

Set Padding

Parameters

padding (Margin) –

set_row(row)None

Sets the row index of the slot, this determines what cell the slot is in the panel

Parameters

row (int32) –

set_row_span(row_span)None

How many rows this this slot spans over

Parameters

row_span (int32) –

set_vertical_alignment(vertical_alignment)None

Set Vertical Alignment

Parameters

vertical_alignment (VerticalAlignment) –

property vertical_alignment

[Read-Only] The alignment of the object vertically.

Type

(VerticalAlignment)