|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Spacing constants: the 4 dp grid every margin and gap is a multiple of, and the minimum size of something a user can hit. More...
#include <headers/guillaume/theme/tokens.hpp>
Static Public Member Functions | |
| static constexpr float | get (unsigned int steps) |
| Get a spacing as a number of grid units. | |
| static constexpr float | touchMargin (float extent) |
| Get the invisible margin that makes a small control as easy to hit as MinTouchTarget. | |
Static Public Attributes | |
| static constexpr float | Unit = 4.0f |
| Base grid unit, in dp. | |
| static constexpr float | MinTouchTarget = 48.0f |
| Smallest width and height an interactive control should offer to a pointer or a finger, in dp. | |
Spacing constants: the 4 dp grid every margin and gap is a multiple of, and the minimum size of something a user can hit.
Everything is static and the same for every theme; the class is never instantiated.
Definition at line 422 of file tokens.hpp.
|
inlinestaticconstexpr |
Get a spacing as a number of grid units.
| steps | The number of 4 dp units. |
Definition at line 441 of file tokens.hpp.

|
inlinestaticconstexpr |
Get the invisible margin that makes a small control as easy to hit as MinTouchTarget.
| extent | The visible width or height of the control, in dp. |
Definition at line 453 of file tokens.hpp.

|
staticconstexpr |
Smallest width and height an interactive control should offer to a pointer or a finger, in dp.
Definition at line 434 of file tokens.hpp.
|
staticconstexpr |
Base grid unit, in dp.
Definition at line 428 of file tokens.hpp.