Context struct
#include <Jazz2/UI/Windows/Element.h>
What the interface is measured with.
Public static functions
Public functions
- auto Px(float units) const -> float
- Converts units to whole pixels.
- auto MeasureText(StringView text) const -> float
- Returns the width of a text in pixels.
- auto GetTextHeight() const -> float
- Returns the height of a line of text in pixels.
Public variables
- float Scale
- Pixels per unit.
Function documentation
static UI:: Font* Jazz2:: UI:: Windows:: Context:: GetFont(float scale)
Returns the font of the interface at a scale of the interface.
The readable font drawn for the scale if Theme::