HikoGUI
A low latency retained GUI
|
#include <hikogui/units/dips.hpp>
Static Public Attributes | |
static constexpr const char | label [] = "dp" |
Additional Inherited Members | |
Public Types inherited from au::UnitImpl< au::Dimension< DeviceIndependentPixelLengthDim > > | |
using | Dim |
using | Mag |
Device Independent Pixel.
Device Independent Pixels are scaled not only based on the PPI (pixels per inch) of the display, but also based on the viewing distance. This will help make text and other graphic elements equally readable on mobile devices, computers and televisions.
The scaling factor for Device Independent Pixels is rounded to improve pixel alignment, example scaling factors are: 0.75, 1.0 (base), 1.5, 2.0, 3.0, 4.0.
A Device Independent Pixel is about 1/160th of an inch on a mobile phone.