xtd 0.2.0
length_unit.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
12  namespace style_sheets {
64  enum class length_unit {
70  inches,
72  pixels,
74  points,
76  picas,
78  element,
82  chase,
94  percent,
95  };
96  }
97  }
98 }
99 
103 };
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
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 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&#39;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&#39;s larger dimension.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides the registration struct for enumerations.
Definition: enum_register.h:36