#include "scrollarea.h" typedef struct Deck Deck; typedef struct Slide Slide; typedef void (* DeckChangeNotify) (gpointer data); Deck *deck_new (DeckChangeNotify notify, gpointer data); void deck_paint_main (Deck *deck, cairo_t *cr, int x, int y); void deck_paint_thumbs (Deck *deck, cairo_t *cr, int x, int y); /* 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_main_slide_location (Deck *deck, int nth_slide); int deck_get_thumb_slide_location (Deck *deck, int nth_slide); int deck_get_main_slide_height (Deck *deck); int deck_get_thumb_slide_height (Deck *deck); int deck_get_main_height (Deck *deck); void deck_set_main_width (Deck *deck, int main_width); void deck_set_thumb_width (Deck *deck, int thumb_width); int deck_get_thumb_height (Deck *deck);