1 /*
2  * xed-view-frame.h
3  * This file is part of xed
4  *
5  * Copyright (C) 2010 - Ignacio Casal Quinteiro
6  *
7  * xed is free software; you can redistribute it and/or modify
8  * it 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  * xed is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xed; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA  02110-1301  USA
21  */
22 
23 #ifndef __XED_VIEW_FRAME_H__
24 #define __XED_VIEW_FRAME_H__
25 
26 #include <gtk/gtk.h>
27 #include "xed-document.h"
28 #include "xed-view.h"
29 
30 G_BEGIN_DECLS
31 
32 #define XED_TYPE_VIEW_FRAME               (xed_view_frame_get_type ())
33 #define XED_VIEW_FRAME(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), XED_TYPE_VIEW_FRAME, XedViewFrame))
34 #define XED_VIEW_FRAME_CONST(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), XED_TYPE_VIEW_FRAME, XedViewFrame const))
35 #define XED_VIEW_FRAME_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), XED_TYPE_VIEW_FRAME, XedViewFrameClass))
36 #define XED_IS_VIEW_FRAME(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XED_TYPE_VIEW_FRAME))
37 #define XED_IS_VIEW_FRAME_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), XED_TYPE_VIEW_FRAME))
38 #define XED_VIEW_FRAME_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), XED_TYPE_VIEW_FRAME, XedViewFrameClass))
39 
40 typedef struct _XedViewFrame        XedViewFrame;
41 typedef struct _XedViewFrameClass   XedViewFrameClass;
42 typedef struct _XedViewFramePrivate XedViewFramePrivate;
43 
44 struct _XedViewFrame
45 {
46     GtkOverlay parent;
47 
48     XedViewFramePrivate *priv;
49 };
50 
51 struct _XedViewFrameClass
52 {
53     GtkOverlayClass parent_class;
54 };
55 
56 GType xed_view_frame_get_type (void) G_GNUC_CONST;
57 
58 XedViewFrame *xed_view_frame_new (void);
59 
60 XedDocument *xed_view_frame_get_document (XedViewFrame *frame);
61 
62 XedView *xed_view_frame_get_view (XedViewFrame *frame);
63 
64 GtkFrame *xed_view_frame_get_map_frame (XedViewFrame *frame);
65 
66 void xed_view_frame_popup_goto_line (XedViewFrame *frame);
67 
68 gboolean xed_view_frame_get_search_popup_visible (XedViewFrame *frame);
69 
70 G_END_DECLS
71 
72 #endif /* __XED_VIEW_FRAME_H__ */
73