class

APalette

Module
Arc
Header
#include "Arc/Widgets/APalette.h"
Namespace
Arcf

Properties

TypeNameDescription
std::function<void(int32_t)>OnSelected
std::function<void(int32_t, bool)>OnEnabledChanged

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetItems
const std::vector<FArcPaletteItem>&GetItems
voidSetSelectedIndex
int32_tGetSelectedIndex
voidSetHoveredIndexPins a hovered tile for display (the gallery's state rows).
voidSetItemEnabled
ArcRectTileRectA tile's rect and its checkbox's, for a widget of the given width.
ArcRectCheckboxRect
int32_tHitTile
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnKeyDown
voidOnMouseEnter
voidOnMouseLeave
boolIsFocusable
EFocusVisualGetFocusVisual
boolPaintsOwnFocus
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(APalette) ARC_ARG(int32_t, Columns) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetItems

C++
void SetItems(std::vector<FArcPaletteItem> items)

GetItems

C++
const std::vector<FArcPaletteItem>& GetItems() const

SetSelectedIndex

C++
void SetSelectedIndex(int32_t index)

GetSelectedIndex

C++
int32_t GetSelectedIndex() const

SetHoveredIndex

C++
void SetHoveredIndex(int32_t index)

Pins a hovered tile for display (the gallery's state rows).

SetItemEnabled

C++
void SetItemEnabled(int32_t index, bool enabled)

TileRect

C++
ArcRect TileRect(const ArcRect& rect, int32_t index) const

A tile's rect and its checkbox's, for a widget of the given width.

CheckboxRect

C++
ArcRect CheckboxRect(const ArcRect& tile) const

HitTile

C++
int32_t HitTile(const ArcRect& rect, const ArcVec2& screen) const

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnKeyDown

C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) override

OnMouseEnter

C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

IsFocusable

C++
bool IsFocusable() const override

GetFocusVisual

C++
EFocusVisual GetFocusVisual() const override

PaintsOwnFocus

C++
bool PaintsOwnFocus() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/APalette.h via arc.json · Nov 5, 2026Version 1.0.0