3
* This file is part of gedit
5
* Copyright (C) 2011 - Ignacio Casal Quinteiro
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.
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.
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
22
#ifndef __GEDIT_OVERLAY_H__
23
#define __GEDIT_OVERLAY_H__
25
#include <glib-object.h>
27
#include "gedit-overlay-child.h"
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))
39
typedef struct _GeditOverlay GeditOverlay;
40
typedef struct _GeditOverlayClass GeditOverlayClass;
41
typedef struct _GeditOverlayPrivate GeditOverlayPrivate;
47
GeditOverlayPrivate *priv;
50
struct _GeditOverlayClass
52
GtkContainerClass parent_class;
55
GType gedit_overlay_get_type (void) G_GNUC_CONST;
57
GtkWidget *gedit_overlay_new (GtkWidget *main_widget,
58
GtkWidget *relative_widget);
60
void gedit_overlay_add (GeditOverlay *overlay,
62
GeditOverlayChildPosition position,
65
void gedit_overlay_set_composited (GeditOverlay *overlay,
70
#endif /* __GEDIT_OVERLAY_H__ */