HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Static Public Attributes
hi::v1::Dips Struct Reference

#include <hikogui/units/dips.hpp>

Inheritance diagram for hi::v1::Dips:
au::UnitImpl< au::Dimension< DeviceIndependentPixelLengthDim > >

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: