class
ATreemap
- Module
- Arc
- Header
#include "Arc/Widgets/ATreemap.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
std::function<void(int32_t)> | OnActivate | |
std::function<void(int32_t, const ArcVec2&)> | OnContext | |
std::function<void()> | OnNavigateUp | |
std::function<void(int32_t)> | OnSelectionChanged | |
bool | ActivateOnClick | A single click (press and release on one cell, no drag) activates the cell, not only a double click: a map that drills in on click. Default false. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
std::vector<FArcTreemapRect> | Squarify | Squarified treemap (Bruls, Huizing, van Wijk) of values laid into (x, y, w, h). |
float | WorstAspect | The worst aspect ratio of a candidate row, the quantity squarify minimises. |
bool | ShowsLabel | Whether a cell this size carries its labels (the spec's 80 x 32). |
void | SetCells | |
const std::vector<FArcTreemapCell>& | GetCells | |
void | ResetView | |
void | SetSelectedCell | |
int32_t | GetSelectedCell | |
int32_t | GetHoveredCell | |
void | SetHoveredCell | Pins a cell's hover for display (the gallery's state rows). |
ArcRect | CellRect | A cell's rect on screen under the current view, inside rect. |
int32_t | HitCell | The leaf cell under a screen point, or -1. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseWheel | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
CReply | OnMouseButtonUp | |
CReply | OnKeyDown | |
void | OnMouseCaptureLost | |
void | OnMouseEnter | |
void | OnMouseLeave | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
bool | PaintsOwnFocus | The ring goes round the keyboard's cell, not the whole map. |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ATreemap) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)Squarify
C++
static std::vector<FArcTreemapRect> Squarify(const std::vector<uint64_t>& values, float x, float y, float w, float h)Squarified treemap (Bruls, Huizing, van Wijk) of values laid into (x, y, w, h). A zero value still gets a sliver: an entry whose size is unknown has to stay visible.
WorstAspect
C++
static float WorstAspect(const std::vector<double>& rowAreas, double side)The worst aspect ratio of a candidate row, the quantity squarify minimises.
ShowsLabel
C++
static bool ShowsLabel(const ArcRect& cell)Whether a cell this size carries its labels (the spec's 80 x 32).
SetCells
C++
void SetCells(std::vector<FArcTreemapCell> cells)GetCells
C++
const std::vector<FArcTreemapCell>& GetCells() constResetView
C++
void ResetView()SetSelectedCell
C++
void SetSelectedCell(int32_t index)GetSelectedCell
C++
int32_t GetSelectedCell() constGetHoveredCell
C++
int32_t GetHoveredCell() constSetHoveredCell
C++
void SetHoveredCell(int32_t index)Pins a cell's hover for display (the gallery's state rows).
CellRect
C++
ArcRect CellRect(const ArcRect& rect, size_t index) constA cell's rect on screen under the current view, inside rect.
HitCell
C++
int32_t HitCell(const ArcRect& rect, const ArcVec2& screen) constThe leaf cell under a screen point, or -1.
ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseWheel
C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() 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 overrideThe ring goes round the keyboard's cell, not the whole map.
GetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ATreemap.h via arc.json · Nov 5, 2026Version 1.0.0