xtd 0.2.0
appearance.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
20  enum class appearance {
22  normal = 0,
24  button = 1,
26  switch_button = 2,
27  };
28  }
29 }
30 
32 template<> 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 };
The default appearance defined by the control class.
The appearance of a button.
Represents a standard Windows switch button.
Definition: switch_button.h:30
appearance
Specifies the appearance of a control.
Definition: appearance.h:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
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
The appearance of a switch button.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Represents a Windows button control.
Definition: button.h:47
Provides the registration struct for enumerations.
Definition: enum_register.h:36