class
AToolGrid
- Module
- Arc
- Header
#include "Arc/Widgets/AToolGrid.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
std::function<TSharedPtr<AToolTile>(const FArcToolItem&)> | MakeTile | Builds the tile for an item; unset makes a plain AToolTile. A host that needs drag payloads or tooltips customises the tile here. |
std::function<void(const std::string&)> | OnToolActivated | A tile was clicked or activated from the keyboard. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetGroups | |
void | SetFilter | |
const std::string& | GetFilter | |
void | SetSelectedId | |
const std::string& | GetSelectedId | |
bool | Matches | |
const std::vector<TSharedPtr<AToolTile>>& | GetVisibleTiles | The tiles left after the filter, in reading order. |
int32_t | GetCursor | |
std::string | GetCursorId | |
bool | MoveCursor | Moves the keyboard cursor by columns (dx) and rows (dy); false at an edge. |
bool | ActivateCursor | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnKeyDown | |
void | OnFocusReceived | |
void | OnFocusLost | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
bool | PaintsOwnFocus | The tile under the keyboard cursor draws the ring. |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(AToolGrid) ARC_ARG(int32_t, Columns) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)SetGroups
C++
void SetGroups(std::vector<FArcToolGroup> groups)SetFilter
C++
void SetFilter(const std::string& filter)GetFilter
C++
const std::string& GetFilter() constSetSelectedId
C++
void SetSelectedId(const std::string& id)GetSelectedId
C++
const std::string& GetSelectedId() constMatches
C++
static bool Matches(const std::string& label, const std::string& filter)GetVisibleTiles
C++
const std::vector<TSharedPtr<AToolTile>>& GetVisibleTiles() constThe tiles left after the filter, in reading order.
GetCursor
C++
int32_t GetCursor() constGetCursorId
C++
std::string GetCursorId() constMoveCursor
C++
bool MoveCursor(int32_t dx, int32_t dy)Moves the keyboard cursor by columns (dx) and rows (dy); false at an edge.
ActivateCursor
C++
bool ActivateCursor()ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideOnFocusReceived
C++
void OnFocusReceived(const CFocusEvent& event) overrideOnFocusLost
C++
void OnFocusLost(const CFocusEvent& event) overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overridePaintsOwnFocus
C++
bool PaintsOwnFocus() const overrideThe tile under the keyboard cursor draws the ring.
GetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AToolGrid.h via arc.json · Nov 5, 2026Version 1.0.0