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
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
IWindowposition
Vector2The location in the window client coordinate system to display the menu item.
minimumWidth
floatcommand
ICommandThe menu item to be positioned at the specified location in the window.
Refresh()
Refreshes the menu according to its internal state.
void Refresh()