Table of Contents

Main Window Menu GUI API Functions

Github Link

 namespace lc::ui::api 

Add Menu


Description

Add a menu to the MenuBar of the Main Window. Menu is an instance of the Menu GUI class. Will not add if another menu of the same label already exists in the menu bar.
Note :- Menu of same label may exist in a menu inside a menu of the menu bar i.e. more than one level away from the menu bar.

Examples


Get Menu


Description

Return pointer to menu of the given name or position present in the menu bar. Returns nullptr if not present.

Examples


Remove Menu


Description

Remove menu of the given name or at the given position from the menu bar. Does nothing if menu does not exist in the menu bar.

Examples


Find Menu Item


Description

Find and return the first menu item found of the given label/object name present in any of the menus recursively (menu bar as well as menus inside other menus).

Examples