class
ASpinner
- Module
- Arc
- Header
#include "Arc/Widgets/ASpinner.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | Construct | |
void | SetSpinning | Stops the clock (and lets an idle host sleep) while the work it stands for is paused or done but the widget is still on screen. |
bool | IsSpinning | |
float | GetAngle | Rotation in radians this frame; 0 under reduced motion. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ASpinner) ARC_ARG(float, Size) ARC_ATTR(ArcColor, Color) ARC_WIDGET_ARGS_END() static constexpr float PERIOD_SECONDS = 0.9fConstruct
C++
void Construct(const CArguments& args)SetSpinning
C++
void SetSpinning(bool spinning)Stops the clock (and lets an idle host sleep) while the work it stands for is paused or done but the widget is still on screen.
IsSpinning
C++
bool IsSpinning() constGetAngle
C++
float GetAngle() constRotation in radians this frame; 0 under reduced motion.
ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ASpinner.h via arc.json · Nov 5, 2026Version 1.0.0