xtd 0.2.0
size_type.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 size_type {
22  auto_size = 0,
24  absolute = 1,
26  percent = 2,
27  };
28  }
29 }
30 
32 template<> struct xtd::enum_register<xtd::forms::size_type> {
33  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::size_type> {{xtd::forms::size_type::auto_size, "auto_size"}, {xtd::forms::size_type::absolute, "absolute"}, {xtd::forms::size_type::percent, "percent"}};}
34 };
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
size_type
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition: size_type.h:20
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 control should be sized as a percentage of the parent container.
The control should be sized to an exact number of pixels.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The control should be automatically sized to share space with its peers.
Provides the registration struct for enumerations.
Definition: enum_register.h:36