xtd 0.2.0
Loading...
Searching...
No Matches
orientation.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 orientation {
24 horizontal = 0,
26 vertical = 1,
27 };
28 }
29}
30
32template<> struct xtd::enum_register<xtd::forms::orientation> {
33 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::orientation> {{xtd::forms::orientation::horizontal, "horizontal"}, {xtd::forms::orientation::vertical, "vertical"}};}
34};
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
orientation
Specifies the orientation of controls or elements of controls.
Definition orientation.h:22
@ horizontal
The control or element is oriented horizontally.
@ vertical
The control or element is oriented vertically.
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