class
ACheckerCanvas
- Module
- Arc
- Header
#include "Arc/Widgets/ACheckerCanvas.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kMinZoom | Default 40.0f. |
static constexpr float | kMaxZoom | Default 6000.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
float | CheckerCellUv | The checker cell size in UV for a zoom of pxPerUv: a power of two whose screen size is nearest the design's 48 px. |
void | PaintBackdrop | |
void | PaintSquare | The 0-1 square: fill, the checker when asked, and its frame. |
void | PaintSquareFrame | |
void | PaintAxisLabels | |
void | PaintIsland | An island polygon in screen space. |
void | PaintFill | A convex polygon filled in one colour, row by row (the island fill without its border): a stretch or density overlay over an island. |
void | PaintSeam | |
void | PaintVertex | |
void | SetIslands | |
void | SetSeams | |
void | SetView | |
void | FrameBox | |
float | GetPixelsPerUv | |
const ArcVec2& | GetPan | |
ArcVec2 | ToScreen | |
ArcVec2 | ToUv | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
CReply | OnMouseButtonUp | |
CReply | OnMouseWheel | |
void | OnMouseCaptureLost | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ACheckerCanvas) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)CheckerCellUv
C++
static float CheckerCellUv(float pxPerUv)The checker cell size in UV for a zoom of pxPerUv: a power of two whose screen size is nearest the design's 48 px.
PaintBackdrop
C++
static void PaintBackdrop(CArcUIRenderer& renderer, const ArcRect& rect, float opacity)PaintSquare
C++
static void PaintSquare(CArcUIRenderer& renderer, const ArcRect& square, bool checker, float opacity)The 0-1 square: fill, the checker when asked, and its frame.
PaintSquareFrame
C++
static void PaintSquareFrame(CArcUIRenderer& renderer, const ArcRect& square, float opacity)PaintAxisLabels
C++
static void PaintAxisLabels(CArcUIRenderer& renderer, const ArcRect& square, float opacity)PaintIsland
C++
static void PaintIsland(CArcUIRenderer& renderer, const ArcVec2* points, size_t count, EArcUvIslandState state, float opacity, const ArcColor* edge = nullptr, bool fill = true)An island polygon in screen space. edge overrides the state's border colour (island tinting); fill draws the state's fill.
PaintFill
C++
static void PaintFill(CArcUIRenderer& renderer, const ArcVec2* points, size_t count, const ArcColor& color)A convex polygon filled in one colour, row by row (the island fill without its border): a stretch or density overlay over an island.
PaintSeam
C++
static void PaintSeam(CArcUIRenderer& renderer, const ArcVec2& a, const ArcVec2& b, float opacity)PaintVertex
C++
static void PaintVertex(CArcUIRenderer& renderer, const ArcVec2& p, float opacity)SetIslands
C++
void SetIslands(std::vector<FArcUvIsland> islands)SetSeams
C++
void SetSeams(std::vector<ArcVec2> seamPoints)SetView
C++
void SetView(const ArcVec2& panUv, float pxPerUv)FrameBox
C++
void FrameBox(const ArcVec2& minUv, const ArcVec2& maxUv, const ArcRect& rect)GetPixelsPerUv
C++
float GetPixelsPerUv() constGetPan
C++
const ArcVec2& GetPan() constToScreen
C++
ArcVec2 ToScreen(const ArcRect& rect, const ArcVec2& uv) constToUv
C++
ArcVec2 ToUv(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) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseWheel
C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ACheckerCanvas.h via arc.json · Nov 5, 2026Version 1.0.0