[libhandy] swipeable: Make completely public
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] swipeable: Make completely public
- Date: Wed, 1 Jul 2020 07:07:27 +0000 (UTC)
commit 71a6e3d6511f91fe01aba3a14d0223f63671ae79
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 | 30 ------------------------------
src/hdy-swipeable.c | 6 ++----
src/hdy-swipeable.h | 16 ++++++++++++++++
10 files changed, 24 insertions(+), 41 deletions(-)
---
diff --git a/doc/meson.build b/doc/meson.build
index b3b1ce01..1077cb56 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -16,7 +16,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 d2c19f40..37821485 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 f547b61b..8ca77abf 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 9dcc923a..d60d4266 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 09b59388..29cb2c60 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -13,7 +13,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 e80e175f..51d236ba 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"
#include "hdy-swipe-tracker-private.h"
#define BUILDABLE_TAG_OBJECT "object"
diff --git a/src/hdy-swipe-tracker-private.h b/src/hdy-swipe-tracker-private.h
index 6ec05f23..99c6afa7 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 3e3b3e17..0bfe2bf8 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
@@ -15,9 +15,7 @@
* The #HdySwipeable interface is implemented by all swipeable widgets. They
* can be synced using #HdySwipeGroup.
*
- * #HdySwipeable is only meant to be used by libhandy widgets and is currently
- * implemented by #HdyCarousel, #HdyDeck and #HdyLeaflet. It should not be
- * implemented by applications.
+ * See #HdySwipeTracker for details about implementing it.
*
* Since: 0.0.12
*/
diff --git a/src/hdy-swipeable.h b/src/hdy-swipeable.h
index a980935d..74b1e585 100644
--- a/src/hdy-swipeable.h
+++ b/src/hdy-swipeable.h
@@ -50,4 +50,20 @@ struct _HdySwipeableInterface
GdkRectangle *rect);
};
+void hdy_swipeable_switch_child (HdySwipeable *self,
+ guint index,
+ gint64 duration);
+
+void hdy_swipeable_emit_child_switched (HdySwipeable *self,
+ guint index,
+ gint64 duration);
+
+gdouble hdy_swipeable_get_distance (HdySwipeable *self);
+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);
+void hdy_swipeable_get_swipe_area (HdySwipeable *self,
+ GdkRectangle *rect);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]