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.
column

(int32) – [Read-Only] The column index of the cell this slot is in

column_span

(int32) – [Read-Only] Column Span

horizontal_alignment

(HorizontalAlignment) – [Read-Only] The alignment of the object horizontally.

layer

(int32) – [Read-Only] 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-Only] Offset this slot’s content by some amount; positive values offset to lower right

padding

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

row

(int32) – [Read-Only] The row index of the cell this slot is in

row_span

(int32) – [Read-Only] Row Span

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_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) –
vertical_alignment

(VerticalAlignment) – [Read-Only] The alignment of the object vertically.