Go to the source code of this file.
Functions | |
| constexpr uint16_t | operator""_px (long double pixels) |
| The custom units operator for pixels. | |
| constexpr uint16_t | operator""_px (unsigned long long pixels) |
| The custom units operator for pixels. | |
| constexpr uint16_t | operator""_mm (long double millimeters) |
| The custom units operator for millimeters. | |
| constexpr uint16_t | operator""_mm (unsigned long long millimeters) |
| The custom units operator for millimeters. | |
| constexpr uint16_t | operator""_cm (long double centimeters) |
| The custom units operator for centimeters. | |
| constexpr uint16_t | operator""_cm (unsigned long long centimeters) |
| The custom units operator for centimeters. | |
| constexpr uint16_t | operator""_in (long double inches) |
| The custom units operator for inches. | |
| constexpr uint16_t | operator""_in (unsigned long long inches) |
| The custom units operator for inches. | |
| uint16_t | operator""_vw (long double view_width_percent) |
| The custom units operator for view width percent. | |
| uint16_t | operator""_vw (unsigned long long view_width_percent) |
| The custom units operator for view width percent. | |
| uint16_t | operator""_vh (long double view_height_percent) |
| The custom units operator for view height percent. | |
| uint16_t | operator""_vh (unsigned long long view_height_percent) |
| The custom units operator for view height percent. | |
| constexpr uint16_t | operator""_pt (long double points) |
| The custom units operator for points. | |
| constexpr uint16_t | operator""_pt (unsigned long long points) |
| The custom units operator for points. | |
| constexpr long double | operator""_deg (long double degrees) |
| The custom units operator for degrees. | |
| constexpr long double | operator""_deg (unsigned long long degrees) |
| The custom units operator for degrees. | |
| constexpr long double | operator""_rad (long double radians) |
| The custom units operator for radians. | |
| constexpr long double | operator""_rad (unsigned long long radians) |
| The custom units operator for radians. | |
| constexpr unsigned long | operator""_ms (unsigned long long time) |
| The custom units operator for milliseconds. | |
| constexpr unsigned long | operator""_sec (unsigned long long time) |
| The custom units operator for seconds. | |
| constexpr unsigned long | operator""_sec (long double time) |
| The custom units operator for seconds. | |
| constexpr unsigned long | operator""_min (unsigned long long time) |
| The custom units operator for minutes. | |
| constexpr unsigned long | operator""_min (long double time) |
| The custom units operator for minutes. | |
| constexpr unsigned long | operator""_hr (unsigned long long time) |
| The custom units operator for hours. | |
| constexpr unsigned long | operator""_hr (long double time) |
| The custom units operator for hours. | |
|
constexpr |
The custom units operator for centimeters.
This operator allows for writing sizes like 2.5_cm, which will automatically be converted to pixels at compile time.
| centimeters | The size in centimeters. |
|
constexpr |
The custom units operator for centimeters.
This operator allows for writing sizes like 2_cm, which will automatically be converted to pixels at compile time.
| centimeters | The size in centimeters. |
|
constexpr |
The custom units operator for degrees.
This operator allows for writing angles like 90_deg, which will automatically be converted to radians at compile time.
| degrees | The angle in degrees. |
|
constexpr |
The custom units operator for degrees.
This operator allows for writing angles like 90_deg, which will automatically be converted to radians at compile time.
| degrees | The angle in degrees. |
|
constexpr |
The custom units operator for hours.
This operator allows for writing time spans like 5_hr, which will automatically be converted to milliseconds at compile time.
| time | The time in hours. |
|
constexpr |
The custom units operator for hours.
This operator allows for writing time spans like 5_hr, which will automatically be converted to milliseconds at compile time.
| time | The time in hours. |
|
constexpr |
The custom units operator for inches.
This operator allows for writing sizes like 0.5_in, which will automatically be converted to pixels at compile time.
| inches | The size in inches. |
|
constexpr |
The custom units operator for inches.
This operator allows for writing sizes like 1_in, which will automatically be converted to pixels at compile time.
| inches | The size in inches. |
|
constexpr |
The custom units operator for minutes.
This operator allows for writing time spans like 5_min, which will automatically be converted to milliseconds at compile time.
| time | The time in minutes. |
|
constexpr |
The custom units operator for minutes.
This operator allows for writing time spans like 5_min, which will automatically be converted to milliseconds at compile time.
| time | The time in minutes. |
|
constexpr |
The custom units operator for millimeters.
This operator allows for writing sizes like 2.5_mm, which will automatically be converted to pixels at compile time.
| millimeters | The size in millimeters. |
|
constexpr |
The custom units operator for millimeters.
This operator allows for writing sizes like 25_mm, which will automatically be converted to pixels at compile time.
| millimeters | The size in millimeters. |
|
constexpr |
The custom units operator for milliseconds.
This operator is included for consistency, to allow for writing time spans like 1_ms instead of just 1. In reality, no transformation is applied.
| time | The time in milliseconds. |
|
constexpr |
The custom units operator for points.
This operator allows for writing sizes like 12.5_pt, which will automatically be converted to pixels at compile time.
| points | The size in points. |
|
constexpr |
The custom units operator for points.
This operator allows for writing sizes like 12_pt, which will automatically be converted to pixels at compile time.
| points | The size in points. |
|
constexpr |
The custom units operator for pixels.
This operator is included for consistency, to allow for writing sizes like 25.0_px instead of just 25. In reality, no transformation is applied.
| pixels | The size in pixels. |
|
constexpr |
The custom units operator for pixels.
This operator is included for consistency, to allow for writing sizes like 25_px instead of just 25. In reality, no transformation is applied.
| pixels | The size in pixels. |
|
constexpr |
The custom units operator for radians.
This operator is included for consistency, to allow for writing sizes like 1_rad instead of just 1.f. In reality, no transformation is applied.
| radians | The angle in radians. |
|
constexpr |
The custom units operator for radians.
This operator is included for consistency, to allow for writing sizes like 1_rad instead of just 1.f. In reality, no transformation is applied.
| radians | The angle in radians. |
|
constexpr |
The custom units operator for seconds.
This operator allows for writing time spans like 5_sec, which will automatically be converted to milliseconds at compile time.
| time | The time in seconds. |
|
constexpr |
The custom units operator for seconds.
This operator allows for writing time spans like 5_sec, which will automatically be converted to milliseconds at compile time.
| time | The time in seconds. |
| uint16_t operator""_vh | ( | long double | view_height_percent | ) |
The custom units operator for view height percent.
This operator allows for writing sizes like 12.5_vh, which will automatically be converted to 12.5% of the display height at run time.
| view_height_percent | The size in view height percent. |
| uint16_t operator""_vh | ( | unsigned long long | view_height_percent | ) |
The custom units operator for view height percent.
This operator allows for writing sizes like 25_vh, which will automatically be converted to 25% of the display height at run time.
| view_height_percent | The size in view height percent. |
| uint16_t operator""_vw | ( | long double | view_width_percent | ) |
The custom units operator for view width percent.
This operator allows for writing sizes like 12.5_vw, which will automatically be converted to 12.5% of the display width at run time.
| view_width_percent | The size in view width percent. |
| uint16_t operator""_vw | ( | unsigned long long | view_width_percent | ) |
The custom units operator for view width percent.
This operator allows for writing sizes like 25_vw, which will automatically be converted to 25% of the display width at run time.
| view_width_percent | The size in view width percent. |