unreal.Margin

class unreal.Margin(left: float = 0.0, top: float = 0.0, right: float = 0.0, bottom: float = 0.0)

Bases: StructBase

Describes the space around a Widget.

C++ Source:

  • Module: SlateCore

  • File: Margin.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bottom (float): [Read-Write] Bottom: Holds the margin to the bottom.

  • left (float): [Read-Write] Left: Holds the margin to the left.

  • right (float): [Read-Write] Right: Holds the margin to the right.

  • top (float): [Read-Write] Top: Holds the margin to the top.

property bottom: float

[Read-Write] Bottom: Holds the margin to the bottom.

Type:

(float)

property left: float

[Read-Write] Left: Holds the margin to the left.

Type:

(float)

property right: float

[Read-Write] Right: Holds the margin to the right.

Type:

(float)

property top: float

[Read-Write] Top: Holds the margin to the top.

Type:

(float)