~ubuntu-branches/ubuntu/precise/simple-scan/precise

« back to all changes in this revision

Viewing changes to src/book-view.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-08-22 14:39:00 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20110822143900-mas00fbdm5evsv8a
Tags: 3.1.3-0ubuntu1
* New upstream release.
* debian/control: Update build-deps as per configure.ac: valac (>= 0.13.0),
  GTK 2 → 3, drop libgconf2-dev.
* debian/watch: Look for *.tar.bz2.
* 01-zlib.patch: Update for new upstream version.
* Disable 20-lpi.patch for now, needs porting to vala.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2009 Canonical Ltd.
3
 
 * Author: Robert Ancell <robert.ancell@canonical.com>
4
 
 * 
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
9
 
 * license.
10
 
 */
11
 
 
12
 
#ifndef _BOOK_VIEW_H_
13
 
#define _BOOK_VIEW_H_
14
 
 
15
 
#include <gtk/gtk.h>
16
 
#include <cairo.h>
17
 
#include "book.h"
18
 
 
19
 
G_BEGIN_DECLS
20
 
 
21
 
#define BOOK_VIEW_TYPE  (book_view_get_type ())
22
 
#define BOOK_VIEW(obj)  (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOOK_VIEW_TYPE, BookView))
23
 
 
24
 
 
25
 
typedef struct BookViewPrivate BookViewPrivate;
26
 
 
27
 
typedef struct
28
 
{
29
 
    GtkVBox parent_instance;
30
 
    BookViewPrivate *priv;
31
 
} BookView;
32
 
 
33
 
typedef struct
34
 
{
35
 
    GtkVBoxClass parent_class;
36
 
 
37
 
    void (*page_selected) (BookView *view, Page *page);
38
 
    void (*show_page) (BookView *view, Page *page);
39
 
    void (*show_menu) (BookView *view, Page *page);
40
 
} BookViewClass;
41
 
 
42
 
 
43
 
GType book_view_get_type (void);
44
 
 
45
 
BookView *book_view_new (Book *book);
46
 
 
47
 
void book_view_redraw (BookView *view);
48
 
 
49
 
Book *book_view_get_book (BookView *view);
50
 
 
51
 
void book_view_select_page (BookView *view, Page *page);
52
 
 
53
 
void book_view_select_next_page (BookView *view);
54
 
 
55
 
void book_view_select_prev_page (BookView *view);
56
 
 
57
 
Page *book_view_get_selected (BookView *view);
58
 
 
59
 
#endif /* _BOOK_VIEW_H_ */