class
ARadioButton
- Module
- Arc
- Header
#include "Arc/Widgets/ARadioButton.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetIsSelected | |
bool | IsSelected | |
void | SetGroup | |
const TSharedPtr<CRadioGroup>& | GetGroup | |
void | SetLabel | |
const std::string& | GetLabel | |
void | SetHasError | |
bool | HasError | |
float | GetSize | |
float | GetFocusRadius | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
CReply | OnKeyDown | |
void | OnMouseEnter | |
void | OnMouseLeave | |
bool | CanCacheDesiredSize | A square from the spec plus the label; a style swap goes through InvalidateAllWidgets, which the cache already honours. |
bool | CanRetainPaint | Selection and hover are the only things it paints from, and both arrive through a setter that invalidates. |
const char* | GetTypeName | |
EAccessibleRole | GetAccessibleRole | |
std::string | GetAccessibleValue | |
bool | IsFocusable | |
bool | OnActivate |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ARadioButton) ARC_ATTR(bool, IsSelected) ARC_EVENT(COnBoolChanged, OnSelectionChanged) ARC_ARG(float, SizeOverride) ARC_ARG(std::string, Label) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)SetIsSelected
C++
void SetIsSelected(bool selected)IsSelected
C++
bool IsSelected() constSetGroup
C++
void SetGroup(const TSharedPtr<CRadioGroup>& group)GetGroup
C++
const TSharedPtr<CRadioGroup>& GetGroup() constSetLabel
C++
void SetLabel(const std::string& label)GetLabel
C++
const std::string& GetLabel() constSetHasError
C++
void SetHasError(bool hasError)HasError
C++
bool HasError() constGetSize
C++
float GetSize() constGetFocusRadius
C++
float GetFocusRadius() const overrideComputeDesiredSize
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) overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideA square from the spec plus the label; a style swap goes through InvalidateAllWidgets, which the cache already honours.
CanRetainPaint
C++
bool CanRetainPaint() const overrideSelection and hover are the only things it paints from, and both arrive through a setter that invalidates. No animation to freeze.
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/ARadioButton.h via arc.json · Nov 5, 2026Version 1.0.0