~ubuntu-branches/ubuntu/raring/gedit/raring

« back to all changes in this revision

Viewing changes to gedit/gedit-overlay.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-06-27 05:29:37 UTC
  • mfrom: (1.1.86 upstream)
  • Revision ID: james.westby@ubuntu.com-20110627052937-9zihn7ha7of3b251
Tags: 3.1.1-0ubuntu1
* New upstream release.
* debian/control.in:
  - Require GTK+ 3.1.6
* debian/watch:
  - Look at unstable releases too

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * gedit-overlay.h
3
 
 * This file is part of gedit
4
 
 *
5
 
 * Copyright (C) 2011 - Ignacio Casal Quinteiro
6
 
 *
7
 
 * gedit is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Lesser General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2.1 of the License, or (at your option) any later version.
11
 
 * 
12
 
 * gedit 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 GNU
15
 
 * Lesser General Public License for more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with this library; if not, write to the Free Software
19
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
 
 */
21
 
 
22
 
#ifndef __GEDIT_OVERLAY_H__
23
 
#define __GEDIT_OVERLAY_H__
24
 
 
25
 
#include <glib-object.h>
26
 
#include <gtk/gtk.h>
27
 
#include "gedit-overlay-child.h"
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define GEDIT_TYPE_OVERLAY              (gedit_overlay_get_type ())
32
 
#define GEDIT_OVERLAY(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_OVERLAY, GeditOverlay))
33
 
#define GEDIT_OVERLAY_CONST(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEDIT_TYPE_OVERLAY, GeditOverlay const))
34
 
#define GEDIT_OVERLAY_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GEDIT_TYPE_OVERLAY, GeditOverlayClass))
35
 
#define GEDIT_IS_OVERLAY(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEDIT_TYPE_OVERLAY))
36
 
#define GEDIT_IS_OVERLAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_OVERLAY))
37
 
#define GEDIT_OVERLAY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GEDIT_TYPE_OVERLAY, GeditOverlayClass))
38
 
 
39
 
typedef struct _GeditOverlay            GeditOverlay;
40
 
typedef struct _GeditOverlayClass       GeditOverlayClass;
41
 
typedef struct _GeditOverlayPrivate     GeditOverlayPrivate;
42
 
 
43
 
struct _GeditOverlay
44
 
{
45
 
        GtkContainer parent;
46
 
 
47
 
        GeditOverlayPrivate *priv;
48
 
};
49
 
 
50
 
struct _GeditOverlayClass
51
 
{
52
 
        GtkContainerClass parent_class;
53
 
};
54
 
 
55
 
GType            gedit_overlay_get_type                 (void) G_GNUC_CONST;
56
 
 
57
 
GtkWidget       *gedit_overlay_new                      (GtkWidget *main_widget,
58
 
                                                         GtkWidget *relative_widget);
59
 
 
60
 
void             gedit_overlay_add                      (GeditOverlay             *overlay,
61
 
                                                         GtkWidget                *widget,
62
 
                                                         GeditOverlayChildPosition position,
63
 
                                                         guint                     offset);
64
 
 
65
 
void             gedit_overlay_set_composited           (GeditOverlay             *overlay,
66
 
                                                         gboolean                  enabled);
67
 
 
68
 
G_END_DECLS
69
 
 
70
 
#endif /* __GEDIT_OVERLAY_H__ */