xtd 0.2.0
Loading...
Searching...
No Matches
size_type.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 size_type {
22 auto_size = 0,
24 absolute = 1,
26 percent = 2,
27 };
28 }
29}
30
32template<> 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};
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
size_type
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition size_type.h:20
@ auto_size
The picture_box is sized equal to the size of the image that it contains.
@ percent
The control should be sized as a percentage of the parent container.
@ auto_size
The control should be automatically sized to share space with its peers.
@ absolute
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 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