xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
menu_item_kind.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
forms
{
21
enum class
menu_item_kind
{
23
normal
= 0,
25
check
= 1,
27
radio
= 2,
29
drop_down
= 3,
31
separator
= 4,
32
};
33
}
34
}
35
37
template
<>
struct
xtd::enum_register
<
xtd
::
forms::menu_item_kind
> {
38
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::forms::menu_item_kind>
{{
xtd::forms::menu_item_kind::normal
,
"normal"
}, {
xtd::forms::menu_item_kind::check
,
"check"
}, {
xtd::forms::menu_item_kind::radio
,
"radio"
}, {
xtd::forms::menu_item_kind::drop_down
,
"drop_down"
}, {
xtd::forms::menu_item_kind::separator
,
"separator"
}};}
39
};
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
xtd::forms::menu_item_kind
menu_item_kind
Represent menu item kind used by xtd::forms::menu_item component.
Definition
menu_item_kind.hpp:21
xtd::forms::keys::separator
@ separator
The separator key.
Definition
keys.hpp:283
xtd::forms::menu_item_kind::check
@ check
Check menu item.
Definition
menu_item_kind.hpp:25
xtd::forms::menu_item_kind::drop_down
@ drop_down
Drop down menu item.
Definition
menu_item_kind.hpp:29
xtd::forms::menu_item_kind::separator
@ separator
Separator menu item.
Definition
menu_item_kind.hpp:31
xtd::forms::menu_item_kind::radio
@ radio
Radio menu item.
Definition
menu_item_kind.hpp:27
xtd::forms::menu_item_kind::normal
@ normal
Normal menu item.
Definition
menu_item_kind.hpp:23
xtd::forms::combo_box_style::drop_down
@ drop_down
Specifies that the list is displayed by clicking the down arrow and that the text portion is editable...
Definition
combo_box_style.hpp:28
xtd::forms::appearance::normal
@ normal
The default appearance defined by the control class.
Definition
appearance.hpp:24
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.