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
| Type | Name | Description |
|---|---|---|
static constexpr size_t | kCount | Default static_cast<size_t>(EMiriBrushState::Count). |
CBrush[kCount] | State | |
MiriColor[kCount] | Foreground | |
bool HasBrush[kCount] = | ||
bool HasForeground[kCount] = |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetBrush | |
void | SetForeground | |
const CBrush* | Find | The state's own brush, else Normal's, else null. |
bool | Any | |
bool | CanRetain |
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) constThe state's own brush, else Normal's, else null.
Any
C++
bool Any() constCanRetain
C++
bool CanRetain() constGenerated from Miri/Style/CMiriStyle.h via miri.json · Dec 5, 2026Version 1.1.0