Class MenuAnchor
The Menu Anchor allows you to specify an location that a popup menu should be anchored to, and should be summoned from.
Inherited Members
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class MenuAnchor : ContentWidget
Remarks
- Single Child
- Popup
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static MenuAnchor DefaultObject { get; }
Property Value
Type | Description |
---|---|
MenuAnchor |
MenuClass
The widget class to spawn when the menu is required.
Declaration
public SubclassOf<UserWidget> MenuClass { get; }
Property Value
Type | Description |
---|---|
SubclassOf<UserWidget> |
Remarks
Creates the widget freshly each time. If you want to customize the creation of the popup, you should bind a function to OnGetMenuContentEvent instead.
Placement
The placement location of the summoned widget.
Declaration
public byte Placement { get; }
Property Value
Type | Description |
---|---|
System.Byte |
ShouldDeferPaintingAfterWindowContent
Declaration
public bool ShouldDeferPaintingAfterWindowContent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
UseApplicationMenuStack
Declaration
public bool UseApplicationMenuStack { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClose()
Closes the menu if it is currently open.
Declaration
public void Close()
GetMenuPosition()
@return The current menu position
Declaration
public Vector2D GetMenuPosition()
Returns
Type | Description |
---|---|
Vector2D |
HasOpenSubMenus()
@return Whether this menu has open submenus
Declaration
public bool HasOpenSubMenus()
Returns
Type | Description |
---|---|
System.Boolean |
IsOpen()
@return true if the popup is open; false otherwise.
Declaration
public bool IsOpen()
Returns
Type | Description |
---|---|
System.Boolean |
New(UObject, Name)
Spawn an object of this class
Declaration
public static MenuAnchor New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
MenuAnchor |
Open(Boolean)
Opens the menu if it is not already open
Declaration
public void Open(bool bFocusMenu)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bFocusMenu |
ShouldOpenDueToClick()
@
Declaration
public bool ShouldOpenDueToClick()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
return true if we should open the menu due to a click. Sometimes we should not, if the same MouseDownEvent that just closed the menu is about to re-open it because it happens to land on the button.
ToggleOpen(Boolean)
Toggles the menus open state.
Declaration
public void ToggleOpen(bool bFocusOnOpen)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bFocusOnOpen |
Remarks
@param bFocusOnOpen Should we focus the popup as soon as it opens?
Operators
| Improve this Doc View SourceImplicit(IntPtr to MenuAnchor)
Convert from IntPtr to UObject
Declaration
public static implicit operator MenuAnchor(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
MenuAnchor |