xtd 0.2.0
Loading...
Searching...
No Matches
button_state.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
23 enum class button_state {
25 normal = 0b0,
27 inactive = 0b100000000,
29 pushed = 0b1000000000,
31 checked = 0b10000000000,
33 flat = 0b100000000000000,
36 };
37 }
38}
39
41flags_attribute_(xtd::forms, button_state);
43
45template<> struct xtd::enum_register<xtd::forms::button_state> {
47};
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
std::vector< xtd::collections::generic::key_value_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.h:22
button_state
Specifies the appearance of a button.
Definition button_state.h:23
@ inactive
The button is inactive (grayed).
@ checked
The button has a checked or latched appearance. Use this appearance to show that a toggle button has ...
@ flat
The button has a flat, two-dimensional appearance.
@ pushed
The button appears pressed.
@ normal
The button has its normal appearance (three-dimensional).
@ all
All flags except none.
@ normal
The default appearance defined by the control class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38