class

CGeometry

Module
Arc
Header
#include "Arc/Framework/CGeometry.h"
Namespace
Arcf

Constructors

SignatureNameDescription
CGeometry() = defaultCGeometry
CGeometry(const ArcVec2& localPosition, const ArcVec2& localSize, const CArcRend…CGeometry

Public functions

ReturnsNameDescription
CGeometryMakeRootRoot geometry covering the whole surface
CGeometryMakeChildChild offset within this parent
CGeometryMakeChildChild with an explicit transform instead of an offset
CGeometryMakeChildTransformedA child whose layout rect stays axis-aligned but whose pixels are painted through an extra absolute-space transform.
CGeometryWithPaintTransformThe same layout rect painted through one more absolute-space transform — a widget's own render transform, applied where its parent arranges it so its whole subtree inherits it.
ArcVec2GetLocalSize
floatGetLocalWidth
floatGetLocalHeight
ArcVec2GetAbsolutePosition
ArcVec2GetAbsoluteSize
ArcRectGetAbsoluteRect
floatGetScale
const CArcRenderTransform&GetAccumulatedRenderTransform
const ArcMat3&GetPaintTransform
boolHasPaintTransform
ArcVec2AbsoluteToLocalSpaceMaps a screen-space point into the widget's own axis-aligned layout space.
boolIsUnderLocation

Function details

CGeometry

C++
CGeometry() = default

CGeometry

C++
CGeometry(const ArcVec2& localPosition, const ArcVec2& localSize, const CArcRenderTransform& accumulatedTransform, float scale = 1.0f) : m_localPosition(localPosition), m_localSize(localSize), m_accumulatedTransform(accumulatedTransform), m_scale(scale)

MakeRoot

C++
static CGeometry MakeRoot(float width, float height, float scale = 1.0f)

Root geometry covering the whole surface

MakeChild

C++
CGeometry MakeChild(const ArcVec2& localOffset, const ArcVec2& localSize) const

Child offset within this parent

MakeChild

C++
CGeometry MakeChild(const ArcVec2& localSize, const CArcRenderTransform& localTransform) const

Child with an explicit transform instead of an offset

MakeChildTransformed

C++
CGeometry MakeChildTransformed(const ArcVec2& localOffset, const ArcVec2& localSize, const ArcMat3& absoluteTransform) const

A child whose layout rect stays axis-aligned but whose pixels are painted through an extra absolute-space transform. The subtree keeps arranging and painting against the unrotated rect (the renderer's transform stack bends the emitted geometry); the inverse of the accumulated paint transform maps a screen pointer back onto that rect for hit testing.

WithPaintTransform

C++
CGeometry WithPaintTransform(const ArcMat3& absoluteTransform) const

The same layout rect painted through one more absolute-space transform — a widget's own render transform, applied where its parent arranges it so its whole subtree inherits it.

GetLocalSize

C++
ArcVec2 GetLocalSize() const

GetLocalWidth

C++
float GetLocalWidth() const

GetLocalHeight

C++
float GetLocalHeight() const

GetAbsolutePosition

C++
ArcVec2 GetAbsolutePosition() const

GetAbsoluteSize

C++
ArcVec2 GetAbsoluteSize() const

GetAbsoluteRect

C++
ArcRect GetAbsoluteRect() const

GetScale

C++
float GetScale() const

GetAccumulatedRenderTransform

C++
const CArcRenderTransform& GetAccumulatedRenderTransform() const

GetPaintTransform

C++
const ArcMat3& GetPaintTransform() const

HasPaintTransform

C++
bool HasPaintTransform() const

AbsoluteToLocalSpace

C++
ArcVec2 AbsoluteToLocalSpace(const ArcVec2& absolutePosition) const

Maps a screen-space point into the widget's own axis-aligned layout space. Identity outside a rotated/scaled subtree, so the common case is the same rect test it always was.

IsUnderLocation

C++
bool IsUnderLocation(const ArcVec2& absolutePosition) const
Generated from Arc/Framework/CGeometry.h via arc.json · Nov 5, 2026Version 1.0.0