MCPcopy
hub / github.com/lobehub/lobehub / IMenuPlatform

Interface IMenuPlatform

apps/desktop/src/main/menus/types.ts:29–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29export interface IMenuPlatform {
30 /**
31 * Build and set application menu
32 */
33 buildAndSetAppMenu: (options?: MenuOptions) => Menu;
34
35 /**
36 * Build context menu
37 */
38 buildContextMenu: (type: string, data?: ContextMenuData) => Menu;
39
40 /**
41 * Build tray menu
42 */
43 buildTrayMenu: () => Menu;
44
45 /**
46 * Refresh menu
47 */
48 refresh: (options?: MenuOptions) => void;
49}

Callers

nothing calls this directly

Implementers 3

LinuxMenuapps/desktop/src/main/menus/impls/linu
MacOSMenuapps/desktop/src/main/menus/impls/macO
WindowsMenuapps/desktop/src/main/menus/impls/wind

Calls

no outgoing calls

Tested by

no test coverage detected