TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::Pixels Struct Reference

A size in device pixels, used as is (not scaled by the UI scale). More...

#include <gui_core/gui_units.h>

Public Member Functions

constexpr Pixels ()=default
constexpr Pixels (int32_t v)
 Explicit: say Pixels{ n } to opt out of CSS px scaling.
constexpr auto operator<=> (const Pixels &) const =default

Public Attributes

int32_t value = 0

Detailed Description

A size in device pixels, used as is (not scaled by the UI scale).

Constructor & Destructor Documentation

◆ Pixels() [1/2]

tachyon::Pixels::Pixels ( )
constexprdefault

◆ Pixels() [2/2]

tachyon::Pixels::Pixels ( int32_t v)
inlineexplicitconstexpr

Explicit: say Pixels{ n } to opt out of CSS px scaling.

Member Function Documentation

◆ operator<=>()

auto tachyon::Pixels::operator<=> ( const Pixels & ) const
constexprdefault

Member Data Documentation

◆ value

int32_t tachyon::Pixels::value = 0

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