Class MenuBar

Namespace
Forma
Assembly
Forma.dll

Simple horizontal menu strip that owns menu buttons and opens one popup at a time.

public sealed class MenuBar : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
MenuBar
Implements
Inherited Members

Constructors

MenuBar()

public MenuBar()

Properties

AccessibilityRole

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

Alignment

public BoxAlignment Alignment { get; set; }

Property Value

BoxAlignment

DisableShortcuts

Gates the bar's own accelerator/shortcut activation across every child menu, matching Godot's MenuBar.disable_shortcuts.

public bool DisableShortcuts { get; set; }

Property Value

bool

Orientation

public Orientation Orientation { get; }

Property Value

Orientation

ReverseSort

public bool ReverseSort { get; set; }

Property Value

bool

Separation

public float Separation { get; set; }

Property Value

float

Methods

AddMenu(string)

public MenuButton AddMenu(string text)

Parameters

text string

Returns

MenuButton

AddSpacer(bool)

public Control AddSpacer(bool begin = false)

Parameters

begin bool

Returns

Control