12 namespace style_sheets {
102 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"}};}
Defines a viewport_height unit. Relative to 1% of the height of the viewport.
Defines a viewport_width unit. Relative to 1% of the width of the viewport.
Defines a root_element unit. Relative to font-size of the root elementRelative to font-size of the ro...
Defines a percent unit. Relative to the parent element.
Defines a picas unit (1pc = 12 pt).
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Defines points unit (1pt = 1/72 of 1in).
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
Defines a millimeters unit.
length_unit
The length_unit enum class specifies the units for xtd::forms::style_sheets::length.
Definition: length_unit.h:64
Defines a chase unit. Relative to width of the "0" (zero).
Defines a centimeters unit.
Defines pixels unit (1px = 1/96th of 1in).
Defines a element_x_height unit. Relative to the x-height of the current font (rarely used)...
Defines a viewport_min unit. Relative to 1% of viewport's smaller dimension.
Defines a element unit. Relative to the font-size of the element (2em means 2 times the size of the c...
Defines a inches unit (1in = 96px = 2.54cm).
Defines a viewport_min unit. Relative to 1% of viewport's larger dimension.
Provides the registration struct for enumerations.
Definition: enum_register.h:36