[libhandy/swipe-tracker-public: 14/16] swipeable: Make completely public



commit 1c5aa42c86410125695bc69cb4225378a08d65c4
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jun 15 01:37:46 2020 +0500

    swipeable: Make completely public
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 doc/meson.build                 |  1 -
 src/hdy-carousel.c              |  2 +-
 src/hdy-deck.c                  |  2 +-
 src/hdy-leaflet.c               |  2 +-
 src/hdy-stackable-box.c         |  2 +-
 src/hdy-swipe-group.c           |  2 +-
 src/hdy-swipe-tracker-private.h |  2 +-
 src/hdy-swipeable-private.h     | 41 -----------------------------------------
 src/hdy-swipeable.c             |  2 +-
 src/hdy-swipeable.h             | 31 +++++++++++++++++++++++++++++--
 10 files changed, 36 insertions(+), 51 deletions(-)
---
diff --git a/doc/meson.build b/doc/meson.build
index a235180a..5d58727c 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -17,7 +17,6 @@ private_headers = [
     'hdy-shadow-helper-private.h',
     'hdy-stackable-box-private.h',
     'hdy-swipe-tracker-private.h',
-    'hdy-swipeable-private.h',
     'hdy-view-switcher-button-private.h',
     'hdy-window-handle-controller-private.h',
     'hdy-window-mixin-private.h',
diff --git a/src/hdy-carousel.c b/src/hdy-carousel.c
index 7fa6d8b1..cb8758d6 100644
--- a/src/hdy-carousel.c
+++ b/src/hdy-carousel.c
@@ -13,7 +13,7 @@
 #include "hdy-carousel-box-private.h"
 #include "hdy-navigation-direction.h"
 #include "hdy-swipe-tracker-private.h"
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 #include <math.h>
 
diff --git a/src/hdy-deck.c b/src/hdy-deck.c
index a1acb927..edda95b6 100644
--- a/src/hdy-deck.c
+++ b/src/hdy-deck.c
@@ -10,7 +10,7 @@
 
 #include "hdy-deck.h"
 #include "hdy-stackable-box-private.h"
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 /**
  * SECTION:hdy-deck
diff --git a/src/hdy-leaflet.c b/src/hdy-leaflet.c
index 9b35bea1..2f336542 100644
--- a/src/hdy-leaflet.c
+++ b/src/hdy-leaflet.c
@@ -10,7 +10,7 @@
 
 #include "hdy-leaflet.h"
 #include "hdy-stackable-box-private.h"
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 /**
  * SECTION:hdy-leaflet
diff --git a/src/hdy-stackable-box.c b/src/hdy-stackable-box.c
index a83461db..b5552f9a 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -14,7 +14,7 @@
 #include "hdy-enums-private.h"
 #include "hdy-stackable-box-private.h"
 #include "hdy-shadow-helper-private.h"
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 #include "hdy-swipe-tracker-private.h"
 
 /**
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index 2badae8e..3c6136b1 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -9,7 +9,7 @@
 #include "hdy-swipe-group.h"
 #include <gtk/gtk.h>
 #include "hdy-navigation-direction.h"
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 #define BUILDABLE_TAG_OBJECT "object"
 #define BUILDABLE_TAG_SWIPEABLE "swipeable"
diff --git a/src/hdy-swipe-tracker-private.h b/src/hdy-swipe-tracker-private.h
index 2f4fa541..32c5bc7f 100644
--- a/src/hdy-swipe-tracker-private.h
+++ b/src/hdy-swipe-tracker-private.h
@@ -11,7 +11,7 @@
 #endif
 
 #include <gtk/gtk.h>
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 G_BEGIN_DECLS
 
diff --git a/src/hdy-swipeable.c b/src/hdy-swipeable.c
index 3c470bd9..e37d18c9 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -4,7 +4,7 @@
  * SPDX-License-Identifier: LGPL-2.1+
  */
 
-#include "hdy-swipeable-private.h"
+#include "hdy-swipeable.h"
 
 /**
  * SECTION:hdy-swipeable
diff --git a/src/hdy-swipeable.h b/src/hdy-swipeable.h
index a47c7091..06ad9414 100644
--- a/src/hdy-swipeable.h
+++ b/src/hdy-swipeable.h
@@ -56,12 +56,39 @@ struct _HdySwipeableInterface
 
   gdouble   (*get_distance)        (HdySwipeable *self);
   void      (*get_range)           (HdySwipeable *self,
-                                    gdouble      *min_progress,
-                                    gdouble      *max_progress);
+                                    gdouble      *lower,
+                                    gdouble      *upper);
   gdouble * (*get_snap_points)     (HdySwipeable *self,
                                     gint         *n_snap_points);
   gdouble   (*get_progress)        (HdySwipeable *self);
   gdouble   (*get_cancel_progress) (HdySwipeable *self);
 };
 
+void hdy_swipeable_switch_child (HdySwipeable *self,
+                                 guint         index,
+                                 gint64        duration);
+void hdy_swipeable_start_swipe  (HdySwipeable           *self,
+                                 HdyNavigationDirection  direction,
+                                 gboolean                direct,
+                                 gint                    start_x,
+                                 gint                    start_y);
+void hdy_swipeable_update_swipe (HdySwipeable *self,
+                                 gdouble       value);
+void hdy_swipeable_end_swipe    (HdySwipeable *self,
+                                 gint64        duration,
+                                 gdouble       to);
+
+void hdy_swipeable_emit_child_switched (HdySwipeable *self,
+                                        guint         index,
+                                        gint64        duration);
+
+gdouble  hdy_swipeable_get_distance        (HdySwipeable *self);
+void     hdy_swipeable_get_range           (HdySwipeable *self,
+                                            gdouble      *lower,
+                                            gdouble      *upper);
+gdouble *hdy_swipeable_get_snap_points     (HdySwipeable *self,
+                                            gint         *n_snap_points);
+gdouble  hdy_swipeable_get_progress        (HdySwipeable *self);
+gdouble  hdy_swipeable_get_cancel_progress (HdySwipeable *self);
+
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]