diff options
Diffstat (limited to 'deck.h')
-rw-r--r-- | deck.h | 27 |
1 files changed, 20 insertions, 7 deletions
@@ -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); |