xtd 0.2.0
Loading...
Searching...
No Matches
appearance.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
22 enum class appearance {
24 normal = 0,
26 button = 1,
28 switch_button = 2,
29 };
30 }
31}
32
34template<> struct xtd::enum_register<xtd::forms::appearance> {
35 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::appearance> {{xtd::forms::appearance::normal, "normal"}, {xtd::forms::appearance::button, "button"}, {xtd::forms::appearance::switch_button, "switch_button"}};}
36};
Represents a Windows button control.
Definition button.h:49
Represents a standard Windows switch button.
Definition switch_button.h:32
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
appearance
Specifies the appearance of a control.
Definition appearance.h:22
@ switch_button
The appearance of a switch button.
@ button
The appearance of a button.
@ 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