class
ACheckBox
- Module
- Arc
- Header
#include "Arc/Widgets/ACheckBox.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | "Don't ask again"), not a setting of its own. | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
void | OnMouseEnter | |
void | OnMouseLeave | |
void | SetIsChecked | |
bool | IsChecked | |
void | SetCheckState | |
ECheckBoxState | GetCheckState | |
void | SetHasError | The design's error state: an Error-coloured border, nothing else. |
bool | HasError | |
void | SetLabel | |
const std::string& | GetLabel | |
float | GetBoxSize | The box edge: the spec's 14 px unless a host asked for another size. |
float | GetFocusRadius | |
bool | CanCacheDesiredSize | A square of m_size. |
bool | CanRetainPaint | A leaf. |
const char* | GetTypeName | |
EAccessibleRole | GetAccessibleRole | |
std::string | GetAccessibleValue | |
bool | IsFocusable | |
bool | OnActivate |
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 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) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideSetIsChecked
C++
void SetIsChecked(bool checked)IsChecked
C++
bool IsChecked() constSetCheckState
C++
void SetCheckState(ECheckBoxState state)GetCheckState
C++
ECheckBoxState GetCheckState() constSetHasError
C++
void SetHasError(bool hasError)The design's error state: an Error-coloured border, nothing else.
HasError
C++
bool HasError() constSetLabel
C++
void SetLabel(const std::string& label)GetLabel
C++
const std::string& GetLabel() constGetBoxSize
C++
float GetBoxSize() constThe box edge: the spec's 14 px unless a host asked for another size.
GetFocusRadius
C++
float GetFocusRadius() const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideA 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 overrideA 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 overrideGetAccessibleRole
C++
EAccessibleRole GetAccessibleRole() const overrideGetAccessibleValue
C++
std::string GetAccessibleValue() const overrideIsFocusable
C++
bool IsFocusable() const overrideOnActivate
C++
bool OnActivate() overrideGenerated from Arc/Widgets/ACheckBox.h via arc.json · Nov 5, 2026Version 1.0.0