class
ASlider
- Module
- Arc
- Header
#include "Arc/Widgets/ASlider.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
CReply | OnKeyDown | Arrows step a hundredth of the range, PageUp/PageDown a tenth, Home/End jump to the ends. |
void | OnMouseCaptureLost | |
void | OnMouseEnter | |
EArcCursorType | OnCursorQuery | |
ArcRect | GetTrackRect | slider.json's track: a thumb's travel stays inside it, so the thumb at 0 and at 1 sits flush with the track's ends. |
ArcRect | GetThumbRect | |
EFocusVisual | GetFocusVisual | The ring goes round the thumb, not the slot the slider is stretched across: the paint draws it there, concentric with the thumb. |
bool | PaintsOwnFocus | |
void | SetValue | |
float | GetValue | |
bool | CanCacheDesiredSize | A fixed track; the handle position is a paint-time concern. |
bool | CanRetainPaint | A leaf whose whole picture is the value, the drag tint and four colours. |
const char* | GetTypeName | |
EAccessibleRole | GetAccessibleRole | |
std::string | GetAccessibleValue | |
bool | IsFocusable |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ASlider) ARC_ATTR(float, Value) ARC_ARG(float, MinValue) ARC_ARG(float, MaxValue) ARC_EVENT(COnFloatChanged, OnValueChanged) ARC_ATTR(ArcColor, TrackColor) ARC_ATTR(ArcColor, FillColor) ARC_ATTR(ArcColor, ThumbColor) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)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) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideArrows step a hundredth of the range, PageUp/PageDown a tenth, Home/End jump to the ends. A key at the limit it would push past is declined so the panel around the slider can use it.
OnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnCursorQuery
C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideGetTrackRect
C++
ArcRect GetTrackRect(const CGeometry& geo) constslider.json's track: a thumb's travel stays inside it, so the thumb at 0 and at 1 sits flush with the track's ends.
GetThumbRect
C++
ArcRect GetThumbRect(const CGeometry& geo) constGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overrideThe ring goes round the thumb, not the slot the slider is stretched across: the paint draws it there, concentric with the thumb.
PaintsOwnFocus
C++
bool PaintsOwnFocus() const overrideSetValue
C++
void SetValue(float value)GetValue
C++
float GetValue() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideA fixed track; the handle position is a paint-time concern.
CanRetainPaint
C++
bool CanRetainPaint() const overrideA leaf whose whole picture is the value, the drag tint and four colours. The value and the drag flag both announce themselves; a bound attribute can hand back a new one with no write to see, which is the only case that has to refuse.
GetTypeName
C++
const char* GetTypeName() const overrideGetAccessibleRole
C++
EAccessibleRole GetAccessibleRole() const overrideGetAccessibleValue
C++
std::string GetAccessibleValue() const overrideIsFocusable
C++
bool IsFocusable() const overrideGenerated from Arc/Widgets/ASlider.h via arc.json · Nov 5, 2026Version 1.0.0