class

MCheckerCanvas

Module
Miri
Header
#include "Miri/Widgets/MCheckerCanvas.h"
Namespace
Miri

Properties

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

Public functions

ReturnsNameDescription
MIRI_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 MiriVec2&GetPan
MiriVec2ToScreen
MiriVec2ToUv
MiriVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
CReplyOnMouseButtonUp
CReplyOnMouseWheel
voidOnMouseCaptureLost
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MCheckerCanvas) MIRI_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(CMiriRenderer& renderer, const MiriRect& rect, float opacity)

PaintSquare

C++
static void PaintSquare(CMiriRenderer& renderer, const MiriRect& square, bool checker, float opacity)

The 0-1 square: fill, the checker when asked, and its frame.

PaintSquareFrame

C++
static void PaintSquareFrame(CMiriRenderer& renderer, const MiriRect& square, float opacity)

PaintAxisLabels

C++
static void PaintAxisLabels(CMiriRenderer& renderer, const MiriRect& square, float opacity)

PaintIsland

C++
static void PaintIsland(CMiriRenderer& renderer, const MiriVec2* points, size_t count, EMiriUvIslandState state, float opacity, const MiriColor* 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(CMiriRenderer& renderer, const MiriVec2* points, size_t count, const MiriColor& 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(CMiriRenderer& renderer, const MiriVec2& a, const MiriVec2& b, float opacity)

PaintVertex

C++
static void PaintVertex(CMiriRenderer& renderer, const MiriVec2& p, float opacity)

SetIslands

C++
void SetIslands(std::vector<FMiriUvIsland> islands)

SetSeams

C++
void SetSeams(std::vector<MiriVec2> seamPoints)

SetView

C++
void SetView(const MiriVec2& panUv, float pxPerUv)

FrameBox

C++
void FrameBox(const MiriVec2& minUv, const MiriVec2& maxUv, const MiriRect& rect)

GetPixelsPerUv

C++
float GetPixelsPerUv() const

GetPan

C++
const MiriVec2& GetPan() const

ToScreen

C++
MiriVec2 ToScreen(const MiriRect& rect, const MiriVec2& uv) const

ToUv

C++
MiriVec2 ToUv(const MiriRect& rect, const MiriVec2& screen) const

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& 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 Miri/Widgets/MCheckerCanvas.h via miri.json · Dec 5, 2026Version 1.1.0