unreal.GridSlot
¶
- class unreal.GridSlot(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
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 incolumn_span
(int32): [Read-Write]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 rightpadding
(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 inrow_span
(int32): [Read-Write]vertical_alignment
(VerticalAlignment): [Read-Write] The alignment of the object vertically.
- property horizontal_alignment: HorizontalAlignment¶
[Read-Write] The alignment of the object horizontally.
- Type:
- property layer: int¶
[Read-Write] 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: Vector2D¶
[Read-Write] Offset this slot’s content by some amount; positive values offset to lower right
- Type:
(Vector2D)
- property padding: Margin¶
[Read-Write] The padding area between the slot and the content it contains.
- Type:
(Margin)
- 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_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: VerticalAlignment¶
[Read-Write] The alignment of the object vertically.
- Type: