unreal.MenuPlacement

class unreal.MenuPlacement

Bases: EnumBase

Enumerates possible placements for pop-up menus.

C++ Source:

  • Module: SlateCore

  • File: SlateEnums.h

MENU_PLACEMENT_ABOVE_ANCHOR: MenuPlacement

Place the menu immediately above the anchor, no transition effect

Type:

6

MENU_PLACEMENT_ABOVE_RIGHT_ANCHOR: MenuPlacement

Place the menu immediately above the anchor aligned to the right of the content

Type:

8

MENU_PLACEMENT_BELOW_ANCHOR: MenuPlacement

Place the menu immediately below the anchor

Type:

0

MENU_PLACEMENT_BELOW_RIGHT_ANCHOR: MenuPlacement

Place the menu immediately below the anchor aligned to the right of the content

Type:

2

MENU_PLACEMENT_CENTER: MenuPlacement

Place the menu’s center on top of the menu anchor’s center point

Type:

10

MENU_PLACEMENT_CENTERED_ABOVE_ANCHOR: MenuPlacement

Place the menu immediately centered above the anchor, no transition effect

Type:

7

MENU_PLACEMENT_CENTERED_BELOW_ANCHOR: MenuPlacement

Place the menu immediately centered below the anchor

Type:

1

MENU_PLACEMENT_COMBO_BOX: MenuPlacement

Place the menu immediately below the anchor and match is width to the anchor’s content

Type:

3

MENU_PLACEMENT_COMBO_BOX_RIGHT: MenuPlacement

Place the menu immediately below the anchor and match is width to the anchor’s content. If the width overflows, align with the right edge of the anchor.

Type:

4

MENU_PLACEMENT_MATCH_BOTTOM_LEFT: MenuPlacement

Place the menu’s bottom left corner directly on top of the menu anchor’s bottom left corner

Type:

12

MENU_PLACEMENT_MENU_LEFT: MenuPlacement

Place the menu to the left of the anchor

Type:

9

MENU_PLACEMENT_MENU_RIGHT: MenuPlacement

Place the menu to the right of the anchor

Type:

5

MENU_PLACEMENT_RIGHT_LEFT_CENTER: MenuPlacement

Place the menu’s vertical center on the left side at the menu anchor’s vertical center on the right side

Type:

11