class

CArcDensity

Module
Arc
Header
#include "Arc/Style/CArcDensity.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
voidSet
EArcDensityGet
voidSetFromIndex0 Compact, 1 Default, 2 Comfortable (what a cvar or a saved preference stores); anything else is Default.
floatRowA row/list/tree/menu/property row height at this density.
floatControlA button/field/toolbar control height at this density.
floatPaddingPadding or a gap at this density.
uint32_tGetRevisionBumped on every change, for caches keyed on density.

Function details

Set

C++
static void Set(EArcDensity density)

Get

C++
static EArcDensity 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 Arc/Style/CArcDensity.h via arc.json · Nov 5, 2026Version 1.0.0