Special button that brings up a PopupMenu when clicked.
    public class MenuButton : Button

Special button that brings up a PopupMenu when clicked. That’s pretty much all it does, as it’s just a helper class when building GUIs.

Inheritance Chain

Constructors

    public MenuButton()

Signals

    "about_to_show" ()

Emitted when PopupMenu of this MenuButton is about to show.

Properties

    public Collections.Array Items { get; set; }

    public bool SwitchOnHover { get; set; }

If true, when the cursor hovers above another MenuButton within the same parent which also has switch_on_hover enabled, it will close the current MenuButton and open the other one.

Methods

    public PopupMenu GetPopup()

Returns the PopupMenu contained in this button.

    [Obsolete("IsSwitchOnHover is deprecated. Use the SwitchOnHover property instead.")]
    public bool IsSwitchOnHover()

Getter for SwitchOnHover

    public void SetDisableShortcuts(bool disabled)

    [Obsolete("SetSwitchOnHover is deprecated. Use the SwitchOnHover property instead.")]
    public void SetSwitchOnHover(bool enable)

Setter for SwitchOnHover

Tags: