class

ACheckerCanvas

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

Properties

TypeNameDescription
static constexpr floatkMinZoomDefault 40.0f.
static constexpr floatkMaxZoomDefault 6000.0f.

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
floatCheckerCellUvThe checker cell size in UV for a zoom of pxPerUv: a power of two whose screen size is nearest the design's 48 px.
voidPaintBackdrop
voidPaintSquareThe 0-1 square: fill, the checker when asked, and its frame.
voidPaintSquareFrame
voidPaintAxisLabels
voidPaintIslandAn island polygon in screen space.
voidPaintFillA convex polygon filled in one colour, row by row (the island fill without its border): a stretch or density overlay over an island.
voidPaintSeam
voidPaintVertex
voidSetIslands
voidSetSeams
voidSetView
voidFrameBox
floatGetPixelsPerUv
const ArcVec2&GetPan
ArcVec2ToScreen
ArcVec2ToUv
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
CReplyOnMouseWheel
voidOnMouseCaptureLost
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() const

GetPan

C++
const ArcVec2& GetPan() const

ToScreen

C++
ArcVec2 ToScreen(const ArcRect& rect, const ArcVec2& uv) const

ToUv

C++
ArcVec2 ToUv(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

OnMouseButtonUp

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

OnMouseWheel

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

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

GetTypeName

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