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

Definition

Contains context menu native API.

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

Protected Static Methods

static intptr create ()
 Creates context menu.
 
static void destroy (intptr context_menu)
 Destroys context menu.
 
static void insert_item (intptr context_menu, size_t pos, intptr menu_item)
 Insert specified item to specisified position.
 
static void insert_menu (intptr context_menu, size_t pos, intptr menu_item, const xtd::string &text)
 Insert specified menu item to specisified position.
 
static intptr native_handle (intptr context_menu)
 Gets native menu handle.
 
static void remove_item (intptr context_menu, size_t pos)
 Remove menu item from specisified position.
 
static void text (intptr context_menu, const xtd::string &text)
 Sets text menu.
 

Member Function Documentation

◆ create()

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

Creates context menu.

Returns
The created context menu window handle.
Warning
Internal use only

◆ destroy()

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

Destroys context menu.

Parameters
context_menuContext menu window handle to destroy.
Warning
Internal use only

◆ insert_item()

static void xtd::forms::native::context_menu::insert_item ( intptr  context_menu,
size_t  pos,
intptr  menu_item 
)
staticprotected

Insert specified item to specisified position.

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

◆ insert_menu()

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

Insert specified menu item to specisified position.

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

◆ native_handle()

static intptr xtd::forms::native::context_menu::native_handle ( intptr  context_menu)
staticprotected

Gets native menu handle.

Parameters
context_menuContext menu handle.
Returns
The native menu handle.
Warning
Internal use only

◆ remove_item()

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

Remove menu item from specisified position.

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

◆ text()

static void xtd::forms::native::context_menu::text ( intptr  context_menu,
const xtd::string text 
)
staticprotected

Sets text menu.

Parameters
context_menuContext menu handle.
textThe text associated with this menu.
Warning
Internal use only

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