summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/src/hdy-swipe-group.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libhandy/src/hdy-swipe-group.h')
-rw-r--r--subprojects/libhandy/src/hdy-swipe-group.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/subprojects/libhandy/src/hdy-swipe-group.h b/subprojects/libhandy/src/hdy-swipe-group.h
new file mode 100644
index 0000000..791962e
--- /dev/null
+++ b/subprojects/libhandy/src/hdy-swipe-group.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2019 Alexander Mikhaylenko <exalm7659@gmail.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1+
+ */
+
+#pragma once
+
+#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
+#error "Only <handy.h> can be included directly."
+#endif
+
+#include "hdy-version.h"
+
+#include <glib-object.h>
+#include "hdy-swipeable.h"
+
+G_BEGIN_DECLS
+
+#define HDY_TYPE_SWIPE_GROUP (hdy_swipe_group_get_type())
+
+HDY_AVAILABLE_IN_ALL
+G_DECLARE_FINAL_TYPE (HdySwipeGroup, hdy_swipe_group, HDY, SWIPE_GROUP, GObject)
+
+HDY_AVAILABLE_IN_ALL
+HdySwipeGroup *hdy_swipe_group_new (void);
+
+HDY_AVAILABLE_IN_ALL
+void hdy_swipe_group_add_swipeable (HdySwipeGroup *self,
+ HdySwipeable *swipeable);
+HDY_AVAILABLE_IN_ALL
+GSList * hdy_swipe_group_get_swipeables (HdySwipeGroup *self);
+HDY_AVAILABLE_IN_ALL
+void hdy_swipe_group_remove_swipeable (HdySwipeGroup *self,
+ HdySwipeable *swipeable);
+
+G_END_DECLS