class
APalette
- Module
- Arc
- Header
#include "Arc/Widgets/APalette.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
std::function<void(int32_t)> | OnSelected | |
std::function<void(int32_t, bool)> | OnEnabledChanged |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetItems | |
const std::vector<FArcPaletteItem>& | GetItems | |
void | SetSelectedIndex | |
int32_t | GetSelectedIndex | |
void | SetHoveredIndex | Pins a hovered tile for display (the gallery's state rows). |
void | SetItemEnabled | |
ArcRect | TileRect | A tile's rect and its checkbox's, for a widget of the given width. |
ArcRect | CheckboxRect | |
int32_t | HitTile | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
CReply | OnKeyDown | |
void | OnMouseEnter | |
void | OnMouseLeave | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
bool | PaintsOwnFocus | |
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() constSetSelectedIndex
C++
void SetSelectedIndex(int32_t index)GetSelectedIndex
C++
int32_t GetSelectedIndex() constSetHoveredIndex
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) constA tile's rect and its checkbox's, for a widget of the given width.
CheckboxRect
C++
ArcRect CheckboxRect(const ArcRect& tile) constHitTile
C++
int32_t HitTile(const ArcRect& rect, const ArcVec2& screen) constComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overridePaintsOwnFocus
C++
bool PaintsOwnFocus() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/APalette.h via arc.json · Nov 5, 2026Version 1.0.0