using System.Collections.Generic; using System.Collections.ObjectModel; using ElectronNET.API.Entities; namespace ElectronNET.API.Interfaces { /// /// Create native application menus and context menus. /// public interface IMenu { /// /// Gets the menu items. /// /// /// The menu items. /// IReadOnlyCollection MenuItems { get; } /// /// Gets the context menu items. /// /// /// The context menu items. /// IReadOnlyDictionary> ContextMenuItems { get; } /// /// Sets the application menu. /// /// The menu items. void SetApplicationMenu(MenuItem[] menuItems); /// /// Sets the context menu. /// /// The browser window. /// The menu items. void SetContextMenu(BrowserWindow browserWindow, MenuItem[] menuItems); /// /// Contexts the menu popup. /// /// The browser window. void ContextMenuPopup(BrowserWindow browserWindow); } }