summaryrefslogtreecommitdiff
path: root/adw/src/switchrow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adw/src/switchrow.cpp')
-rw-r--r--adw/src/switchrow.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/adw/src/switchrow.cpp b/adw/src/switchrow.cpp
index 0aab454..9c0245e 100644
--- a/adw/src/switchrow.cpp
+++ b/adw/src/switchrow.cpp
@@ -5,6 +5,7 @@
#include <glibmm/class.h>
#include <glibmm/object.h>
#include <glibmm/objectbase.h>
+#include <glibmm/propertyproxy.h>
#include <glibmm/refptr.h>
#include <glibmm/wrap.h>
@@ -68,6 +69,26 @@ namespace Adwaita
{
}
+ auto SwitchRow::get_active() const noexcept -> bool
+ {
+ return adw_switch_row_get_active(const_cast<BaseObjectType *>(unwrap(this)));
+ }
+
+ auto SwitchRow::set_active(bool value) noexcept -> void
+ {
+ adw_switch_row_set_active(unwrap(this), value);
+ }
+
+ auto SwitchRow::property_active() -> Glib::PropertyProxy<bool>
+ {
+ return Glib::PropertyProxy<bool>{this, "active"};
+ }
+
+ auto SwitchRow::property_active() const -> Glib::PropertyProxy_ReadOnly<bool>
+ {
+ return Glib::PropertyProxy_ReadOnly<bool>{this, "active"};
+ }
+
} // namespace Adwaita
namespace Glib