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] Column: The column index of the cell this slot is incolumn_span
(int32): [Read-Write] Column Spanhorizontal_alignment
(HorizontalAlignment): [Read-Write] Horizontal Alignment: The alignment of the object horizontally.layer
(int32): [Read-Write] Layer: 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] Nudge: Offset this slot’s content by some amount; positive values offset to lower rightpadding
(Margin): [Read-Write] Padding: The padding area between the slot and the content it contains.row
(int32): [Read-Write] Row: The row index of the cell this slot is inrow_span
(int32): [Read-Write] Row Spanvertical_alignment
(VerticalAlignment): [Read-Write] Vertical Alignment: The alignment of the object vertically.
- property column¶
[Read-Only] Column: 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] Horizontal Alignment: The alignment of the object horizontally.
- Type
- property layer¶
[Read-Only] Layer: 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] Nudge: Offset this slot’s content by some amount; positive values offset to lower right
- Type
(Vector2D)
- property padding¶
[Read-Only] Padding: The padding area between the slot and the content it contains.
- Type
(Margin)
- property row¶
[Read-Only] Row: 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_row(row) None ¶
Sets the row index of the slot, this determines what cell the slot is in the panel
- Parameters
row (int32) –
- set_vertical_alignment(vertical_alignment) None ¶
Set Vertical Alignment
- Parameters
vertical_alignment (VerticalAlignment) –
- property vertical_alignment¶
[Read-Only] Vertical Alignment: The alignment of the object vertically.
- Type