2
* Copyright (C) 2009 Canonical Ltd.
3
* Author: Robert Ancell <robert.ancell@canonical.com>
5
* This program is free software: you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License as published by the Free Software
7
* Foundation, either version 3 of the License, or (at your option) any later
8
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
21
#define BOOK_VIEW_TYPE (book_view_get_type ())
22
#define BOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOOK_VIEW_TYPE, BookView))
25
typedef struct BookViewPrivate BookViewPrivate;
29
GtkVBox parent_instance;
30
BookViewPrivate *priv;
35
GtkVBoxClass parent_class;
37
void (*page_selected) (BookView *view, Page *page);
38
void (*show_page) (BookView *view, Page *page);
39
void (*show_menu) (BookView *view, Page *page);
43
GType book_view_get_type (void);
45
BookView *book_view_new (Book *book);
47
void book_view_redraw (BookView *view);
49
Book *book_view_get_book (BookView *view);
51
void book_view_select_page (BookView *view, Page *page);
53
void book_view_select_next_page (BookView *view);
55
void book_view_select_prev_page (BookView *view);
57
Page *book_view_get_selected (BookView *view);
59
#endif /* _BOOK_VIEW_H_ */