class

MRadioButton

Module
Miri
Header
#include "Miri/Widgets/MRadioButton.h"
Namespace
Miri

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetIsSelected
boolIsSelected
voidSetGroup
const TSharedPtr<CRadioGroup>&GetGroup
voidSetLabel
const std::string&GetLabel
voidSetHasError
boolHasError
floatGetSize
floatGetFocusRadius
MiriVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
CReplyOnKeyDown
voidOnMouseEnter
voidOnMouseLeave
boolCanCacheDesiredSizeA square from the spec plus the label; a style swap goes through InvalidateAllWidgets, which the cache already honours.
boolCanRetainPaintSelection and hover are the only things it paints from, and both arrive through a setter that invalidates.
const char*GetTypeName
EAccessibleRoleGetAccessibleRole
std::stringGetAccessibleValue
boolIsFocusable
boolOnActivate

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MRadioButton) MIRI_ATTR(bool, IsSelected) MIRI_EVENT(COnBoolChanged, OnSelectionChanged) MIRI_ARG(float, SizeOverride) MIRI_ARG(std::string, Label) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetIsSelected

C++
void SetIsSelected(bool selected)

IsSelected

C++
bool IsSelected() const

SetGroup

C++
void SetGroup(const TSharedPtr<CRadioGroup>& group)

GetGroup

C++
const TSharedPtr<CRadioGroup>& GetGroup() const

SetLabel

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

GetLabel

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

SetHasError

C++
void SetHasError(bool hasError)

HasError

C++
bool HasError() const

GetSize

C++
float GetSize() const

GetFocusRadius

C++
float GetFocusRadius() const override

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& 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

OnKeyDown

C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) override

OnMouseEnter

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

OnMouseLeave

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

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

A square from the spec plus the label; a style swap goes through InvalidateAllWidgets, which the cache already honours.

CanRetainPaint

C++
bool CanRetainPaint() const override

Selection 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 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 Miri/Widgets/MRadioButton.h via miri.json · Dec 5, 2026Version 1.1.0