Table of Contents

Class Menu

Namespace
Lime
Assembly
Lime.dll
public class Menu : List<ICommand>, IReadOnlyList<ICommand>, IReadOnlyCollection<ICommand>, IList, ICollection, IMenu, IList<ICommand>, ICollection<ICommand>, IEnumerable<ICommand>, IEnumerable
Inheritance
Menu
Implements
Inherited Members
Extension Methods

Constructors

Menu(bool)

public Menu(bool ignoreFirstFocusLoss = false)

Parameters

ignoreFirstFocusLoss bool

Properties

ShowImageMargin

public bool ShowImageMargin { get; set; }

Property Value

bool

Methods

FindCommand(string)

Returns first menu item with a given text.

public ICommand FindCommand(string text)

Parameters

text string

Returns

ICommand

Popup()

Shows the menu at the current position of the cursor.

public void Popup()

Popup(IWindow, Vector2, float, ICommand)

Shows the menu at the given client position of the window.

public void Popup(IWindow window, Vector2 position, float minimumWidth, ICommand command)

Parameters

window IWindow
position Vector2

The location in the window client coordinate system to display the menu item.

minimumWidth float
command ICommand

The menu item to be positioned at the specified location in the window.

Refresh()

Refreshes the menu according to its internal state.

public void Refresh()