Table of Contents

Interface IMenu

Namespace
RetroEditor.Plugins
Assembly
RetroEditor.dll

Interface for creating menus

public interface IMenu

Methods

AddItem(IMenuItem, string)

Add a menu parented to another menu item. Represents a new submenu.

IMenuItem AddItem(IMenuItem parent, string name)

Parameters

parent IMenuItem

Parent to attach new item to

name string

Name of the menu item

Returns

IMenuItem

object representing the new item

AddItem(IMenuItem, string, MenuEventHandler)

Add an interactable menu item to the parent menu item

IMenuItem AddItem(IMenuItem parent, string name, MenuEventHandler handler)

Parameters

parent IMenuItem

Parent to attach new item to

name string

Name of the menu item

handler MenuEventHandler

Handler for the menu item

Returns

IMenuItem

object representing the new item

AddItem(string)

Add a menu item to the root of the plugins menu. Represents a new submenu.

IMenuItem AddItem(string name)

Parameters

name string

Name of the menu item

Returns

IMenuItem

object representing the new item

AddItem(string, MenuEventHandler)

Add an interactable menu item to the root of the plugins menu.

IMenuItem AddItem(string name, MenuEventHandler handler)

Parameters

name string

Name of the menu item

handler MenuEventHandler

Handler for the menu item

Returns

IMenuItem

object representing the new item