18#include "AViewContainer.h"
19#include "ARadioButton.h"
20#include "AUI/Model/AListModel.h"
21#include <AUI/Layout/AHorizontalLayout.h>
22#include <AUI/Layout/AVerticalLayout.h>
23#include <AUI/Model/IListModel.h>
38 template<
typename... RadioButtons>
40 setLayout(std::make_unique<AVerticalLayout>());
41 setViews({ std::forward<RadioButtons>(radioButtons)... });
48 if (
auto rb = _cast<ARadioButton>(v)) {
49 mGroup->addRadioButton(rb);
57 [[nodiscard]]
bool isSelected()
const {
58 return mGroup->isSelected();
60 [[nodiscard]]
int getSelectedId()
const {
61 return mGroup->getSelectedId();
63 void setSelectedId(
int id)
const;
70namespace declarative {
A group of radio buttons.
Definition: ARadioGroup.h:32
A std::vector with AUI extensions.
Definition: AVector.h:38
A trivial modifiable view that represents a set of views.
Definition: AViewContainer.h:33
void setViews(AVector< _< AView > > views)
Replace views.
Definition: AViewContainerBase.cpp:614
void setLayout(_unique< ALayout > layout)
Set new layout manager for this AViewContainerBase. DESTROYS OLD LAYOUT MANAGER WITH ITS VIEWS!...
Definition: AViewContainerBase.cpp:175
void addView(const _< AView > &view)
Add view to the container.
Definition: AViewContainerBase.cpp:143
Definition: IListModel.h:23
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177
Definition: Declarative.h:173
Definition: ARadioGroup.h:73
Definition: ARadioGroup.h:71