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
ItemCount
public int ItemCount { get; set; }
Property Value
Menu
public PopupMenu Menu { get; }
Property Value
SwitchOnHover
Whether an already-open sibling menu switches to this button when it is hovered.
public bool SwitchOnHover { get; set; }
Property Value
Methods
ShowPopup()
public void ShowPopup()
Events
AboutToPopup
public event EventHandler AboutToPopup
Event Type
PopupHidden
public event Action<MenuButton, PopupHideReason> PopupHidden
Event Type
PopupShown
public event EventHandler PopupShown