summaryrefslogtreecommitdiff
path: root/deck.h
diff options
context:
space:
mode:
Diffstat (limited to 'deck.h')
-rw-r--r--deck.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/deck.h b/deck.h
index 3d6b299..b13eb89 100644
--- a/deck.h
+++ b/deck.h
@@ -3,10 +3,23 @@
typedef struct Deck Deck;
typedef struct Slide Slide;
-Deck *deck_new (void);
-int deck_get_height (Deck *deck,
- int width);
-void deck_paint (Deck *deck,
- FooScrollArea *area,
- cairo_t *cr,
- int width);
+typedef void (* DeckChangeNotify) (gpointer data);
+
+Deck *deck_new (DeckChangeNotify notify,
+ gpointer data);
+void deck_paint (Deck *deck,
+ FooScrollArea *area,
+ cairo_t *cr);
+/* Returns the slide the user is likely looking
+ * at, given the viewport.
+ */
+int
+deck_get_view_slide (Deck *deck,
+ GdkRectangle *viewport);
+/* Returns the y coordinate of the nth slide given
+ * the width of the viewport
+ */
+int
+deck_get_slide_location (Deck *deck,
+ GdkRectangle *viewport,
+ int nth_slide);