summaryrefslogtreecommitdiff
path: root/deck.h
blob: 3ba2357f461dba0eefbb86fea94fe0efe01783e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#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);