class

CMiriViewportPaint

Module
Miri
Header
#include "Miri/Widgets/CMiriViewportPaint.h"
Namespace
Miri

Public functions

ReturnsNameDescription
voidOverlayPlateThe viewport-overlay plate: Surface1, PanelBorder, radius 6.
voidPaneFrameA viewport-pane frame: radius 4, PanelBorder, BorderStrong hovered, AccentColor on the active pane (Selected).
voidPaneLabelA pane's camera / view-mode label on its overlay plate, inset 6 at the top-left, 26 tall.
MiriVec2MeasureStatsThe stats overlay: label / value rows in Numeric, columns 16 apart, labels TextSecondary, values TextBright and right-aligned.
voidStats
voidSelectionOutlineA 1 px AccentColor frame round the selection and its name chip above it; capsule rounds it fully (physics bodies).
voidBrushCursorThe brush cursor projected to the screen: the 2 px inner ring at radius × (1 − falloff), the dashed 1 px outer ring at the full radius, the 8 px centre and the Numeric readout under it.
voidControlGizmoA Control Rig control in the viewport, sized from the spec (30, 36 or 48 for circles; 30 or 60 for boxes) and coloured by state.
voidQualityCardFrameThe quality-card frame: SurfaceFlyout, BorderNormal, radius 6 and the popup shadow (none in High Contrast).

Function details

OverlayPlate

C++
static void OverlayPlate(CMiriRenderer& renderer, const MiriRect& rect, float opacity = 1.0f)

The viewport-overlay plate: Surface1, PanelBorder, radius 6.

PaneFrame

C++
static void PaneFrame(CMiriRenderer& renderer, const MiriRect& rect, Mowo::EMiriSpecState state, float opacity = 1.0f)

A viewport-pane frame: radius 4, PanelBorder, BorderStrong hovered, AccentColor on the active pane (Selected).

PaneLabel

C++
static void PaneLabel(CMiriRenderer& renderer, const MiriRect& pane, const std::string& label, float opacity = 1.0f)

A pane's camera / view-mode label on its overlay plate, inset 6 at the top-left, 26 tall.

MeasureStats

C++
static MiriVec2 MeasureStats(CMiriRenderer& renderer, const std::vector<FMiriViewportStat>& stats)

The stats overlay: label / value rows in Numeric, columns 16 apart, labels TextSecondary, values TextBright and right-aligned.

Stats

C++
static void Stats(CMiriRenderer& renderer, const MiriVec2& topLeft, const std::vector<FMiriViewportStat>& stats, float opacity = 1.0f)

SelectionOutline

C++
static void SelectionOutline(CMiriRenderer& renderer, const MiriRect& bounds, const std::string& label, bool capsule = false, float opacity = 1.0f)

A 1 px AccentColor frame round the selection and its name chip above it; capsule rounds it fully (physics bodies).

BrushCursor

C++
static void BrushCursor(CMiriRenderer& renderer, const MiriVec2& centre, float radius, float falloff, const std::string& label, Mowo::EMiriSpecState state, float opacity = 1.0f)

The brush cursor projected to the screen: the 2 px inner ring at radius × (1 − falloff), the dashed 1 px outer ring at the full radius, the 8 px centre and the Numeric readout under it. The state is Default, Pressed (painting), Disabled (no target) or Error (target locked).

ControlGizmo

C++
static void ControlGizmo(CMiriRenderer& renderer, const MiriVec2& centre, EMiriControlShape shape, float size, Mowo::EMiriSpecState state, float opacity = 1.0f)

A Control Rig control in the viewport, sized from the spec (30, 36 or 48 for circles; 30 or 60 for boxes) and coloured by state.

QualityCardFrame

C++
static void QualityCardFrame(CMiriRenderer& renderer, const MiriRect& rect, float opacity = 1.0f)

The quality-card frame: SurfaceFlyout, BorderNormal, radius 6 and the popup shadow (none in High Contrast).

Generated from Miri/Widgets/CMiriViewportPaint.h via miri.json · Dec 5, 2026Version 1.1.0