class

ACheckBox

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS"Don't ask again"), not a setting of its own.
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
voidOnMouseEnter
voidOnMouseLeave
voidSetIsChecked
boolIsChecked
voidSetCheckState
ECheckBoxStateGetCheckState
voidSetHasErrorThe design's error state: an Error-coloured border, nothing else.
boolHasError
voidSetLabel
const std::string&GetLabel
floatGetBoxSizeThe box edge: the spec's 14 px unless a host asked for another size.
floatGetFocusRadius
boolCanCacheDesiredSizeA square of m_size.
boolCanRetainPaintA leaf.
const char*GetTypeName
EAccessibleRoleGetAccessibleRole
std::stringGetAccessibleValue
boolIsFocusable
boolOnActivate

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ACheckBox) ARC_ATTR(bool, IsChecked) ARC_EVENT(COnBoolChanged, OnCheckStateChanged) ARC_ATTR(ArcColor, CheckedColor) ARC_ATTR(ArcColor, UncheckedColor) ARC_ARG(float, Size) ARC_ARG(std::string, Label) ARC_ARG(bool, QuietLabel) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

"Don't ask again"), not a setting of its own.

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

OnMouseButtonUp

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

OnMouseMove

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

OnMouseEnter

C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

SetIsChecked

C++
void SetIsChecked(bool checked)

IsChecked

C++
bool IsChecked() const

SetCheckState

C++
void SetCheckState(ECheckBoxState state)

GetCheckState

C++
ECheckBoxState GetCheckState() const

SetHasError

C++
void SetHasError(bool hasError)

The design's error state: an Error-coloured border, nothing else.

HasError

C++
bool HasError() const

SetLabel

C++
void SetLabel(const std::string& label)

GetLabel

C++
const std::string& GetLabel() const

GetBoxSize

C++
float GetBoxSize() const

The box edge: the spec's 14 px unless a host asked for another size.

GetFocusRadius

C++
float GetFocusRadius() const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

A square of m_size. Check state and hover drive the paint, never the measure, so neither can move the desired size.

CanRetainPaint

C++
bool CanRetainPaint() const override

A leaf. Refused while the hover fade runs — that is a clock nothing invalidates on — and whenever a bound attribute could hand back a new check state or colour with no write to see. The enter/move/leave handlers drop the slice so the settled frame cannot replay the box from before the fade.

GetTypeName

C++
const char* GetTypeName() const override

GetAccessibleRole

C++
EAccessibleRole GetAccessibleRole() const override

GetAccessibleValue

C++
std::string GetAccessibleValue() const override

IsFocusable

C++
bool IsFocusable() const override

OnActivate

C++
bool OnActivate() override
Generated from Arc/Widgets/ACheckBox.h via arc.json · Nov 5, 2026Version 1.0.0