Class MenuButton

Namespace
Forma
Assembly
Forma.dll

A button that opens its owned PopupMenu underneath itself.

public sealed class MenuButton : BaseButton, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
MenuButton
Implements
Inherited Members

Constructors

MenuButton()

public MenuButton()

Properties

DisableShortcuts

Retained Godot shortcut-routing state. It is exposed for applications that provide a shortcut dispatcher.

public bool DisableShortcuts { get; set; }

Property Value

bool

ItemCount

public int ItemCount { get; set; }

Property Value

int

Menu

public PopupMenu Menu { get; }

Property Value

PopupMenu

SwitchOnHover

Whether an already-open sibling menu switches to this button when it is hovered.

public bool SwitchOnHover { get; set; }

Property Value

bool

Methods

ShowPopup()

public void ShowPopup()

Events

AboutToPopup

public event EventHandler AboutToPopup

Event Type

EventHandler

PopupHidden

public event Action<MenuButton, PopupHideReason> PopupHidden

Event Type

Action<MenuButton, PopupHideReason>

PopupShown

public event EventHandler PopupShown

Event Type

EventHandler