xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::main_menu Class Referencefinal
Inheritance diagram for xtd::forms::native::main_menu:
xtd::static_object

Definition

Main menu native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static intptr create ()
 Creates main menu.
 
static void destroy (intptr main_menu)
 Destroys main menu.
 
static void insert_item (intptr main_menu, size_t pos, intptr menu_item, const xtd::string &text)
 Insert specified menu item to specisified position.
 
static void remove_item (intptr main_menu, size_t pos)
 Remove menu item from specisified position.
 

Member Function Documentation

◆ create()

static intptr xtd::forms::native::main_menu::create ( )
staticprotected

Creates main menu.

Returns
The created main menu handle.
Warning
Internal use only

◆ destroy()

static void xtd::forms::native::main_menu::destroy ( intptr  main_menu)
staticprotected

Destroys main menu.

Parameters
main_menuMain menu handle.
Warning
Internal use only

◆ insert_item()

static void xtd::forms::native::main_menu::insert_item ( intptr  main_menu,
size_t  pos,
intptr  menu_item,
const xtd::string text 
)
staticprotected

Insert specified menu item to specisified position.

Parameters
main_menuMain menu handle.
posPosition to insert menu item.
menu_itemMenu item to insert.
textThe text associated with this menu.
Warning
Internal use only

◆ remove_item()

static void xtd::forms::native::main_menu::remove_item ( intptr  main_menu,
size_t  pos 
)
staticprotected

Remove menu item from specisified position.

Parameters
menuMenu handle.
posPosition to insert menu item.
Warning
Internal use only

The documentation for this class was generated from the following file: