summaryrefslogtreecommitdiff
path: root/csrc/widgets/control-center/control-details-item.h
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-06-19 23:17:58 +0200
committerHannes Schulze <haschu0103@outlook.de>2025-06-19 23:17:58 +0200
commit1af3d14f3f995645a0de08a54b244c19840709e9 (patch)
tree3c4098863d8a8fd004a2acc8912a23b6036ab4dd /csrc/widgets/control-center/control-details-item.h
parent40efcf60a5f39674b5137f11de7bcfe37fb121b5 (diff)
init hs project
Diffstat (limited to 'csrc/widgets/control-center/control-details-item.h')
-rw-r--r--csrc/widgets/control-center/control-details-item.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/csrc/widgets/control-center/control-details-item.h b/csrc/widgets/control-center/control-details-item.h
new file mode 100644
index 0000000..ff890f9
--- /dev/null
+++ b/csrc/widgets/control-center/control-details-item.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define FOOBAR_TYPE_CONTROL_DETAILS_ACCESSORY foobar_control_details_accessory_get_type( )
+#define FOOBAR_TYPE_CONTROL_DETAILS_ITEM foobar_control_details_item_get_type( )
+
+typedef enum
+{
+ FOOBAR_CONTROL_DETAILS_ACCESSORY_NONE,
+ FOOBAR_CONTROL_DETAILS_ACCESSORY_CHECKED,
+ FOOBAR_CONTROL_DETAILS_ACCESSORY_PROGRESS,
+} FoobarControlDetailsAccessory;
+
+GType foobar_control_details_accessory_get_type( void );
+
+G_DECLARE_FINAL_TYPE( FoobarControlDetailsItem, foobar_control_details_item, FOOBAR, CONTROL_DETAILS_ITEM, GtkWidget )
+
+GtkWidget* foobar_control_details_item_new ( void );
+gchar const* foobar_control_details_item_get_label ( FoobarControlDetailsItem* self );
+FoobarControlDetailsAccessory foobar_control_details_item_get_accessory( FoobarControlDetailsItem* self );
+gboolean foobar_control_details_item_is_checked ( FoobarControlDetailsItem* self );
+void foobar_control_details_item_set_label ( FoobarControlDetailsItem* self,
+ gchar const* value );
+void foobar_control_details_item_set_accessory( FoobarControlDetailsItem* self,
+ FoobarControlDetailsAccessory value );
+void foobar_control_details_item_set_checked ( FoobarControlDetailsItem* self,
+ gboolean value );
+
+G_END_DECLS