]> www.fi.muni.cz Git - evince.git/blob - libview/ev-annotation-window.h
libview: Use has-entry GtkComboBox instead of GtkComboBoxEntry
[evince.git] / libview / ev-annotation-window.h
1 /* ev-annotation-window.h
2  *  this file is part of evince, a gnome document viewer
3  *
4  * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
5  * Copyright (C) 2007 IƱigo Martinez <inigomartinez@gmail.com>
6  *
7  * Evince is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * Evince is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21
22 #ifndef EV_ANNOTATION_WINDOW_H
23 #define EV_ANNOTATION_WINDOW_H
24
25 #include <gtk/gtk.h>
26
27 #include "ev-annotation.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EvAnnotationWindow      EvAnnotationWindow;
32 typedef struct _EvAnnotationWindowClass EvAnnotationWindowClass;
33
34 #define EV_TYPE_ANNOTATION_WINDOW              (ev_annotation_window_get_type())
35 #define EV_ANNOTATION_WINDOW(object)           (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindow))
36 #define EV_ANNOTATION_WINDOW_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))
37 #define EV_IS_ANNOTATION_WINDOW(object)        (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_ANNOTATION_WINDOW))
38 #define EV_IS_ANNOTATION_WINDOW_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_ANNOTATION_WINDOW))
39 #define EV_ANNOTATION_WINDOW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))
40
41 GType         ev_annotation_window_get_type       (void) G_GNUC_CONST;
42 GtkWidget    *ev_annotation_window_new            (EvAnnotation       *annot,
43                                                    GtkWindow          *parent);
44 EvAnnotation *ev_annotation_window_get_annotation (EvAnnotationWindow *window);
45 void          ev_annotation_window_set_annotation (EvAnnotationWindow *window,
46                                                    EvAnnotation       *annot);
47 gboolean      ev_annotation_window_is_open        (EvAnnotationWindow *window);
48 void          ev_annotation_window_get_rectangle  (EvAnnotationWindow *window,
49                                                    EvRectangle        *rect);
50 void          ev_annotation_window_set_rectangle  (EvAnnotationWindow *window,
51                                                    const EvRectangle  *rect);
52 void          ev_annotation_window_grab_focus     (EvAnnotationWindow *window);
53 void          ev_annotation_window_ungrab_focus   (EvAnnotationWindow *window);
54
55 G_END_DECLS
56
57 #endif /* EV_ANNOTATION_WINDOW_H */