Class MainMenu
Menu strip with child buttons.
Implements
System.IComparable
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class MainMenu : ContainerControl, IComparable, IDrawable
Constructors
MainMenu()
Properties
Selected
Gets or sets the selected button (with opened context menu).
Declaration
public MainMenuButton Selected { get; set; }
Property Value
|
FlaxEditor.GUI.MainMenuButton
|
Methods
AddButton(String)
Adds the button.
Declaration
public MainMenuButton AddButton(string text)
Parameters
|
System.String
text
The button text. |
Returns
|
FlaxEditor.GUI.MainMenuButton
Created button control. |
GetButton(String)
Gets the button.
Declaration
public MainMenuButton GetButton(string text)
Parameters
|
System.String
text
The button text. |
Returns
|
FlaxEditor.GUI.MainMenuButton
The button or null if missing. |
GetOrAddButton(String)
Gets or adds a button.
Declaration
public MainMenuButton GetOrAddButton(string text)
Parameters
|
System.String
text
The button text |
Returns
|
FlaxEditor.GUI.MainMenuButton
The existing or created button control. |
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
OnKeyDown(KeyboardKeys)
When key goes down
Declaration
public override bool OnKeyDown(KeyboardKeys key)
Parameters
|
KeyboardKeys
key
Key value |
Returns
|
System.Boolean
True if event has been handled, otherwise false |
Overrides
PerformLayoutAfterChildren()
Perform layout for that container control after performing it for child controls.
Declaration
protected override void PerformLayoutAfterChildren()