Adding upstream version 0.3.5.2+svn20080509.
[debian/lxpanel.git] / src / bg.h
1 /*
2 * fb-background-monitor.h:
3 *
4 * Copyright (C) 2001, 2002 Ian McKellar <yakk@yakk.net>
5 * 2002 Sun Microsystems, Inc.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library 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 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
21 *
22 * Authors:
23 * Ian McKellar <yakk@yakk.net>
24 * Mark McLoughlin <mark@skynet.ie>
25 */
26
27 #ifndef __FB_BG_H__
28 #define __FB_BG_H__
29
30 /* FIXME: this needs to be made multiscreen aware
31 * panel_bg_get should take
32 * a GdkScreen argument.
33 */
34
35 #include <glib.h>
36 #include <glib-object.h>
37 #include <gtk/gtk.h>
38
39 #define FB_TYPE_BG (fb_bg_get_type ())
40 #define FB_BG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
41 FB_TYPE_BG, \
42 FbBg))
43 #define FB_BG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
44 FB_TYPE_BG, \
45 FbBgClass))
46 #define FB_IS_BG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
47 FB_TYPE_BG))
48 #define FB_IS_BG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
49 FB_TYPE_BG))
50 #define FB_BG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
51 FB_TYPE_BG, \
52 FbBgClass))
53
54 typedef struct _FbBgClass FbBgClass;
55 typedef struct _FbBg FbBg;
56
57 GType fb_bg_get_type (void);
58 FbBg *fb_bg_new(void);
59 void fb_bg_composite(GdkDrawable *base, GdkGC *gc, guint32 tintcolor, gint alpha);
60 GdkPixmap *fb_bg_get_xroot_pix_for_win(FbBg *bg, GtkWidget *widget);
61 void fb_bg_notify_changed_bg(FbBg *bg);
62 FbBg *fb_bg_get_for_display(void);
63 #endif /* __FB_BG_H__ */