CMiriViewportPaint
- Module
- Miri
- Header
#include "Miri/Widgets/CMiriViewportPaint.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
void | OverlayPlate | The viewport-overlay plate: Surface1, PanelBorder, radius 6. |
void | PaneFrame | A viewport-pane frame: radius 4, PanelBorder, BorderStrong hovered, AccentColor on the active pane (Selected). |
void | PaneLabel | A pane's camera / view-mode label on its overlay plate, inset 6 at the top-left, 26 tall. |
MiriVec2 | MeasureStats | The stats overlay: label / value rows in Numeric, columns 16 apart, labels TextSecondary, values TextBright and right-aligned. |
void | Stats | |
void | SelectionOutline | A 1 px AccentColor frame round the selection and its name chip above it; capsule rounds it fully (physics bodies). |
void | BrushCursor | 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. |
void | ControlGizmo | 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. |
void | QualityCardFrame | The quality-card frame: SurfaceFlyout, BorderNormal, radius 6 and the popup shadow (none in High Contrast). |
Function details
OverlayPlate
static void OverlayPlate(CMiriRenderer& renderer, const MiriRect& rect, float opacity = 1.0f)The viewport-overlay plate: Surface1, PanelBorder, radius 6.
PaneFrame
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
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
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
static void Stats(CMiriRenderer& renderer, const MiriVec2& topLeft, const std::vector<FMiriViewportStat>& stats, float opacity = 1.0f)SelectionOutline
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
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
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
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).