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

Definition

Menu item native API.

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

Protected Static Methods

static void checked (intptr menu_item, bool checked)
 Checked menu item.
 
static intptr create (intptr menu, const xtd::string &text, const xtd::drawing::image &image, int32 kind, size_t shortcut)
 Creates menu item with specified menu.
 
static void destroy (intptr menu_item)
 Destroys menu_item.
 
static void enabled (intptr menu_item, bool enabled)
 Enabled menu item.
 
static intptr menu_id (intptr menu_item)
 Gets menu id.
 
static void text (intptr menu_item, const xtd::string &text, size_t shortcut)
 Sets text menu item.
 

Member Function Documentation

◆ checked()

static void xtd::forms::native::menu_item::checked ( intptr  menu_item,
bool  checked 
)
staticprotected

Checked menu item.

Parameters
menu_itemMenu item handle.
checkedtrue if menu item is checked; otherwise false.
Warning
Internal use only

◆ create()

static intptr xtd::forms::native::menu_item::create ( intptr  menu,
const xtd::string text,
const xtd::drawing::image image,
int32  kind,
size_t  shortcut 
)
staticprotected

Creates menu item with specified menu.

Parameters
menuMenu handle.
textThe text associated with this menu_item.
imageA xtd::drawing::image associated with this menu_item.
kindA menu item kind.
shortcutA bitwise virtual key and virtual key modifiers shortcut associate with this menu_item.
Returns
The created menu handle.
Warning
Internal use only

◆ destroy()

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

Destroys menu_item.

Parameters
menu_itemMenu item handle.
Warning
Internal use only

◆ enabled()

static void xtd::forms::native::menu_item::enabled ( intptr  menu_item,
bool  enabled 
)
staticprotected

Enabled menu item.

Parameters
menu_itemMenu item handle.
enabledtrue if menu item is enabled; otherwise false.
Warning
Internal use only

◆ menu_id()

static intptr xtd::forms::native::menu_item::menu_id ( intptr  menu_item)
staticprotected

Gets menu id.

Parameters
menu_itemMenu item handle.
Returns
Id corresponding to menu_item handle.
Warning
Internal use only

◆ text()

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

Sets text menu item.

Parameters
menu_itemMenu item handle.
textThe text associated with this menu_item.
shortcutA bitwise virtual key and virtual key modifiers shortcut associate with this menu_item.
Warning
Internal use only

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