15#include "AViewContainer.h"
16#include <AUI/ASS/Selector/Selected.h>
29 bool mChecked =
false;
31 bool selectableIsSelectedImpl()
override;
37 setChecked(!isChecked());
40 [[nodiscard]]
bool isChecked()
const {
52 void setChecked(
bool checked =
true) {
54 emit customCssPropertyChanged();
55 emit ACheckBox::checked(checked);
58 void setUnchecked(
bool unchecked =
true) {
59 setChecked(!unchecked);
79 setChecked(!isChecked());
82 [[nodiscard]]
bool isChecked()
const {
83 return mCheckBox->isChecked();
94 void setChecked(
bool checked =
true) {
95 mCheckBox->setChecked(checked);
98 void setUnchecked(
bool unchecked =
true) {
99 setChecked(!unchecked);
115 static auto getGetter() {
116 return &ACheckBox::checked;
119 static auto getSetter() {
120 return &ACheckBox::setChecked;
130 static auto getGetter() {
131 return &ACheckBoxWrapper::checked;
134 static auto getSetter() {
135 return &ACheckBoxWrapper::setChecked;
139namespace declarative {
View container with a checkbox.
Definition: ACheckBox.h:74
A check box (without label).
Definition: ACheckBox.h:27
A view that represents a set of views.
Definition: AViewContainerBase.h:68
Base class of all UI objects.
Definition: AView.h:77
virtual bool consumesClick(const glm::ivec2 &pos)
Determines whether this AView processes this click or passes it thru.
Definition: AView.cpp:534
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177
Definition: Selected.h:18
#define emit
emits the specified signal in context of this object.
Definition: AObject.h:196
Definition: ADataBinding.h:24
static void setup(const _< View > &view)
Definition: ADataBinding.h:30
Definition: Declarative.h:91