[libhandy/wip/haecker-felix/flap-widget] Enum
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget] Enum
- Date: Tue, 17 Nov 2020 12:45:21 +0000 (UTC)
commit 35b488a635351ccf88452b783b1c104ffcd207bd
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 17 17:45:08 2020 +0500
Enum
src/hdy-flap.c | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index d123ae48..95d9e2f9 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -22,6 +22,16 @@
* Since: 1.1
*/
+/**
+ * HdyFlapFoldPolicy:
+ * @HDY_FLAP_FOLD_POLICY_NEVER: No transition
+ * @HDY_FLAP_FOLD_POLICY_ALWAYS: A cross-fade
+ * @HDY_FLAP_FOLD_POLICY_AUTO: TBH
+ *
+ * These enumeration values describe the possible transitions between children
+ * in a #HdyFlap widget.
+ */
+
struct _HdyFlap
{
GtkContainer parent_instance;
@@ -894,6 +904,13 @@ hdy_flap_init (HdyFlap *self)
update_swipe_tracker (self);
}
+static void
+hdy_flap_switch_child (HdySwipeable *swipeable,
+ guint index,
+ guint64 duration)
+{
+}
+
static HdySwipeTracker *
hdy_flap_get_swipe_tracker (HdySwipeable *swipeable)
{
@@ -970,7 +987,7 @@ hdy_flap_get_swipe_area (HdySwipeable *swipeable,
static void
hdy_flap_swipeable_init (HdySwipeableInterface *iface)
{
-// iface->switch_child = hdy_leaflet_switch_child;
+// iface->switch_child = hdy_flap_switch_child;
iface->get_swipe_tracker = hdy_flap_get_swipe_tracker;
iface->get_distance = hdy_flap_get_distance;
iface->get_snap_points = hdy_flap_get_snap_points;
@@ -1145,6 +1162,14 @@ hdy_flap_get_reveal_flap (HdyFlap *self)
return self->reveal_flap;
}
+static void
+set_reveal_flap (HdyFlap *self,
+ gboolean reveal_flap,
+ guint64 duration)
+{
+
+}
+
/**
* hdy_flap_set_reveal_flap:
* @self: a #HdyFlap
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]