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 {
20 enum class appearance {
22 normal = 0,
24 button = 1,
26 switch_button = 2,
27 };
28 }
29}
30
32template<> struct xtd::enum_register<xtd::forms::appearance> {
33 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"}};}
34};
Represents a Windows button control.
Definition button.h:47
Represents a standard Windows switch button.
Definition switch_button.h:30
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
appearance
Specifies the appearance of a control.
Definition appearance.h:20
@ 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:36