class
CMiriDensity
- Module
- Miri
- Header
#include "Miri/Style/CMiriDensity.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
void | Set | |
EMiriDensity | Get | |
void | SetFromIndex | 0 Compact, 1 Default, 2 Comfortable (what a cvar or a saved preference stores); anything else is Default. |
float | Row | A row/list/tree/menu/property row height at this density. |
float | Control | A button/field/toolbar control height at this density. |
float | Padding | Padding or a gap at this density. |
uint32_t | GetRevision | Bumped on every change, for caches keyed on density. |
Function details
Set
C++
static void Set(EMiriDensity density)Get
C++
static EMiriDensity Get()SetFromIndex
C++
static void SetFromIndex(int32_t index)0 Compact, 1 Default, 2 Comfortable (what a cvar or a saved preference stores); anything else is Default.
Row
C++
static float Row(float defaultHeight)A row/list/tree/menu/property row height at this density.
Control
C++
static float Control(float defaultHeight)A button/field/toolbar control height at this density.
Padding
C++
static float Padding(float defaultPadding)Padding or a gap at this density.
GetRevision
C++
static uint32_t GetRevision()Bumped on every change, for caches keyed on density.
Generated from Miri/Style/CMiriDensity.h via miri.json · Dec 5, 2026Version 1.1.0