AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ARadioButton Class Reference

A radio button. More...

#include <AUI/View/ARadioButton.h>

Detailed Description

A radio button is a checkable button (similar to ACheckBox) that typically used in groups. In a group of radio buttons, only one radio button at a time can be checked thus checking another radio button in a group causes to switch off the previous one.

See declarative::RadioButton for a declarative form and examples.

Whenever the radio button is checked or unchecked, it emits checked() signal.

Member Function Documentation

> All members, including inherited

◆ onPointerReleased()

void ARadioButton::onPointerReleased ( const APointerReleasedEvent & event)
overridevirtual
Parameters
eventevent
Note
To handle clicks, you should use AView::clicked signal instead. View still receives pointer move and released events even if cursor goes outside the view boundaries, or other exclusive event appeared (i.e. scrollarea scroll). AView::clicked emitted only if release event occurred inside view and no other event has prevented click gesture. See APointerReleasedEvent::triggerClick.

Reimplemented from AView.

◆ selectableIsSelectedImpl()

bool ARadioButton::selectableIsSelectedImpl ( )
overrideprotectedvirtual

Implements ass::ISelectable.