Table of Contents

Interface IMenu

Namespace
Lime
Assembly
Lime.dll
public interface IMenu : IList<ICommand>, ICollection<ICommand>, IEnumerable<ICommand>, IEnumerable
Inherited Members
Extension Methods

Methods

FindCommand(string)

Returns first menu item with a given text.

ICommand FindCommand(string text)

Parameters

text string

Returns

ICommand

Popup()

Shows the menu at the current position of the cursor.

void Popup()

Popup(IWindow, Vector2, float, ICommand)

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

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.

void Refresh()