omni.kit.widget.context_menu

Submodules Summary:

omni.kit.widget.context_menu.context_menu

Context menu core functionality

omni.kit.widget.context_menu.custom_menu_dict

The singleton object that holds custom context menu which is private

Classes Summary:

ContextMenuEventType

Event sent when menus are added or removed

ContextMenuWidgetExtension

Context menu core functionality

DefaultMenuDelegate

MenuDelegate is used to generate widgets that represent the menu item.

uiMenu

The Menu class provides a menu widget for use in menu bars, context menus, and other popup menus.

uiMenuItem

A MenuItem represents the items the Menu consists of.

Functions Summary:

add_menu

add custom menu to any context_menu

close_menu

Close currently open context menu. Used by tests not to leave context menu in bad state.

get_instance

Get instance of context menu class

get_menu_dict

get custom menus

get_menu_event_stream

Gets menu event stream.

merge_menus

Merge custom menus

reorder_menu_dict

Reorder menus using “appear_after” value in menu