12 namespace style_sheets {
104 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::forms::style_sheets::length_unit> {{
xtd::forms::style_sheets::length_unit::centimeters,
"centimeters"}, {
xtd::forms::style_sheets::length_unit::millimeters,
"millimeters"}, {
xtd::forms::style_sheets::length_unit::inches,
"inches"}, {
xtd::forms::style_sheets::length_unit::pixels,
"pixels"}, {
xtd::forms::style_sheets::length_unit::points,
"points"}, {
xtd::forms::style_sheets::length_unit::picas,
"picas"}, {
xtd::forms::style_sheets::length_unit::element,
"element"}, {
xtd::forms::style_sheets::length_unit::element_x_height,
"element_x_height"}, {
xtd::forms::style_sheets::length_unit::chase,
"chase"}, {
xtd::forms::style_sheets::length_unit::root_element,
"root_element"}, {
xtd::forms::style_sheets::length_unit::viewport_width,
"viewport_width"}, {
xtd::forms::style_sheets::length_unit::viewport_height,
"viewport_height"}, {
xtd::forms::style_sheets::length_unit::viewport_min,
"viewport_min"}, {
xtd::forms::style_sheets::length_unit::viewport_max,
"viewport_max"}, {
xtd::forms::style_sheets::length_unit::percent,
"percent"}};}
length_unit
The length_unit enum class specifies the units for xtd::forms::style_sheets::length.
Definition length_unit.h:66
@ viewport_height
Defines a viewport_height unit. Relative to 1% of the height of the viewport.
@ points
Defines points unit (1pt = 1/72 of 1in).
@ viewport_width
Defines a viewport_width unit. Relative to 1% of the width of the viewport.
@ percent
Defines a percent unit. Relative to the parent element.
@ inches
Defines a inches unit (1in = 96px = 2.54cm).
@ root_element
Defines a root_element unit. Relative to font-size of the root elementRelative to font-size of the ro...
@ viewport_min
Defines a viewport_min unit. Relative to 1% of viewport's smaller dimension.
@ millimeters
Defines a millimeters unit.
@ element
Defines a element unit. Relative to the font-size of the element (2em means 2 times the size of the c...
@ viewport_max
Defines a viewport_min unit. Relative to 1% of viewport's larger dimension.
@ element_x_height
Defines a element_x_height unit. Relative to the x-height of the current font (rarely used).
@ picas
Defines a picas unit (1pc = 12 pt).
@ chase
Defines a chase unit. Relative to width of the "0" (zero).
@ pixels
Defines pixels unit (1px = 1/96th of 1in).
@ centimeters
Defines a centimeters unit.
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
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