xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
anchor_styles.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
forms
{
19
enum class
anchor_styles
{
21
none
= 0b0,
23
top
= 0b1,
25
bottom
= 0b10,
27
left
= 0b100,
29
right
= 0b1000,
31
all
=
top
|
bottom
|
left
|
right
,
32
};
33
}
34
}
35
37
flags_attribute_
(
xtd::forms
, anchor_styles);
38
39
template
<>
struct
xtd::enum_register
<
xtd
::
forms::anchor_styles
> {
40
static
auto
values
() noexcept {
return
xtd::enum_collection<xtd::forms::anchor_styles>
{{
xtd::forms::anchor_styles::none
,
"none"
}, {
xtd::forms::anchor_styles::top
,
"top"
}, {
xtd::forms::anchor_styles::bottom
,
"bottom"
}, {
xtd::forms::anchor_styles::left
,
"left"
}, {
xtd::forms::anchor_styles::right
,
"right"
}};}
41
};
flags_attribute_
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition
flags_attribute.hpp:34
xtd::enum_collection
std::vector< std::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.hpp:24
xtd::forms::anchor_styles
anchor_styles
Specifies how a control anchors to the edges of its container.
Definition
anchor_styles.hpp:19
xtd::forms::anchor_styles::none
@ none
no styles.
Definition
anchor_styles.hpp:21
xtd::forms::anchor_styles::bottom
@ bottom
Bind control edges to the bottom of its container.
Definition
anchor_styles.hpp:25
xtd::forms::anchor_styles::right
@ right
Bind control edges to the right of its container.
Definition
anchor_styles.hpp:29
xtd::forms::anchor_styles::left
@ left
Bind control edges to the left of its container.
Definition
anchor_styles.hpp:27
xtd::forms::anchor_styles::all
@ all
All flags except none.
Definition
anchor_styles.hpp:31
xtd::forms::anchor_styles::top
@ top
Bind control edges to the top of its container.
Definition
anchor_styles.hpp:23
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.