#include <gui_radio_button_utils.h>
Utility interface for radio button gadget metrics and icon state mapping.
Provides helpers to compute font-scaled radio button sizes and to resolve radio button icon resource IDs from hover, focus, disabled, and radio button states.
Public Types | |
| enum class | STATE : UChar { UNCHECKED , CHECKED , TRISTATE } |
Public Member Functions | |
| enum maxon::GuiRadioButtonUtils::STATE UChar | MAXON_ENUM_LIST_CLASS (STATE) |
Static Public Member Functions | |
| static MAXON_METHOD Int32 | GetBaseSize () |
| static MAXON_METHOD Int32 | GetFontScaledSize (Opt< Float > fontSize={}) |
| static MAXON_METHOD Int32 | GetIconId (Bool isHovered, Bool isFocused, Bool isDisabled, STATE radioButtonState) |
Private Member Functions | |
| MAXON_INTERFACE_NONVIRTUAL (GuiRadioButtonUtils, MAXON_REFERENCE_STATIC, "net.maxon.interface.guiradiobuttonutils") | |
|
private |
|
static |
Returns the unscaled base size used for the radio button gadget.
|
static |
Returns the size of a radio button gadget, scaled according to the optional font size.
| fontSize | Optional font size override; if omitted, uses the font size defined in preferences. |
| enum maxon::GuiRadioButtonUtils::STATE UChar MAXON_ENUM_LIST_CLASS | ( | STATE | ) |
|
static |
Returns the icon resource identifier for a radio button with the specified interaction and radio button states.
| isHovered | True if the mouse cursor is hovering over the gadget. |
| isFocused | True if the gadget has keyboard focus. |
| isDisabled | True if the gadget is disabled. Takes priority over hover and focus. |
| radioButtonState | The current radio button state. |