struct

FMiriStateBrushes

One brush and one foreground per interaction state. A widget given these paints a state's brush instead of the one its style derives; a state with nothing set falls back to Normal, then to the style.

Module
Miri
Header
#include "Miri/Style/CMiriStyle.h"
Namespace
Miri

Properties

TypeNameDescription
static constexpr size_tkCountDefault static_cast<size_t>(EMiriBrushState::Count).
CBrush[kCount]State
MiriColor[kCount]Foreground
bool HasBrush[kCount] =
bool HasForeground[kCount] =

Public functions

ReturnsNameDescription
voidSetBrush
voidSetForeground
const CBrush*FindThe state's own brush, else Normal's, else null.
boolAny
boolCanRetain

Function details

SetBrush

C++
void SetBrush(EMiriBrushState state, const CBrush& brush)

SetForeground

C++
void SetForeground(EMiriBrushState state, const MiriColor& color)

Find

C++
const CBrush* Find(EMiriBrushState state) const

The state's own brush, else Normal's, else null.

Any

C++
bool Any() const

CanRetain

C++
bool CanRetain() const
Generated from Miri/Style/CMiriStyle.h via miri.json · Dec 5, 2026Version 1.1.0