struct

CBrush

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

Properties

TypeNameDescription
EBrushDrawModeDrawModeDefault EBrushDrawMode::Rounded.
CArcStyleColorTint
ArcMarginMarginFor 9-slice borders
floatCornerRadiusDefault 0.0f.
Ref<IArcRHITexture>ImageOwning reference — a style set outlives the widgets that read it, so a brush must keep its texture alive on its own.
ArcVec2TileSizeTiled mode only; non-positive components fall back to the texture size.

Public functions

ReturnsNameDescription
CBrushRoundedBox
CBrushNone
CBrushStretchedImage
CBrushTiledImage
CBrushNineSliceImage
CBrushRoundedImage
voidDrawPaints the brush into rect, honoring DrawMode.
voidDraw

Function details

RoundedBox

C++
static CBrush RoundedBox(const CArcStyleColor& color, float radius)

None

C++
static CBrush None()

StretchedImage

C++
static CBrush StretchedImage(const Ref<IArcRHITexture>& image, const ArcColor& tint = ArcColor::White)

TiledImage

C++
static CBrush TiledImage(const Ref<IArcRHITexture>& image, const ArcVec2& tileSize, const ArcColor& tint = ArcColor::White)

NineSliceImage

C++
static CBrush NineSliceImage(const Ref<IArcRHITexture>& image, const ArcMargin& borders, const ArcColor& tint = ArcColor::White)

RoundedImage

C++
static CBrush RoundedImage(const Ref<IArcRHITexture>& image, float radius, const ArcColor& tint = ArcColor::White)

Draw

C++
void Draw(CArcUIRenderer& renderer, const ArcRect& rect, float opacity = 1.0f) const

Paints the brush into rect, honoring DrawMode. Image-less brushes degrade to a solid (rounded) rect so every style stays paintable.

Draw

C++
void Draw(CArcUIRenderer& renderer, const ArcRect& rect, const ArcColor& tintOverride, float opacity) const
Generated from Arc/Style/CArcStyle.h via arc.json · Nov 5, 2026Version 1.0.0