HikoGUI
A low latency retained GUI
|
This file contains constants and conversion functions. More...
#include "../macros.hpp"
#include "concepts.hpp"
#include <concepts>
#include <limits>
Go to the source code of this file.
Namespaces | |
namespace | v1 |
DOXYGEN BUG. | |
Functions | |
hi_export_module (hikogui.utility.numbers) | |
template<std::floating_point T> | |
constexpr T | v1::points_to_dp (T x) noexcept |
Convert points to device independent pixels. | |
Variables | |
template<typename T > | |
constexpr auto | v1::large_number_v = T{16777215} |
A large number. | |
template<std::floating_point T> | |
constexpr auto | v1::points_per_inch_v = T{72.0} |
The number of points (typography) per inch. | |
template<std::floating_point T> | |
constexpr auto | v1::dp_per_inch_v = T{80.0} |
The number of device independent pixels per inch. | |
template<std::floating_point T> | |
constexpr auto | v1::points_to_dp_scale_v = dp_per_inch_v<T> / points_per_inch_v<T> |
constexpr double | v1::points_per_inch = points_per_inch_v<double> |
constexpr double | v1::dp_per_inch = dp_per_inch_v<double> |
This file contains constants and conversion functions.