Add support for monitors "All" to span panel over all monitors.
[lxde/lxpanel.git] / src / bg.h
CommitLineData
a52c2257
HJYP
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
5d344669
AL
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
a52c2257
HJYP
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
54typedef struct _FbBgClass FbBgClass;
55typedef struct _FbBg FbBg;
56
57GType fb_bg_get_type (void);
97c4163b 58#define fb_bg_new() (FbBg *)g_object_new(FB_TYPE_BG, NULL)
938806f9 59void fb_bg_composite(GdkDrawable *base, GdkColor *tintcolor, gint alpha);
a52c2257
HJYP
60GdkPixmap *fb_bg_get_xroot_pix_for_win(FbBg *bg, GtkWidget *widget);
61void fb_bg_notify_changed_bg(FbBg *bg);
62FbBg *fb_bg_get_for_display(void);
fd207e51 63GdkPixmap *fb_bg_get_pix_from_file(GtkWidget *widget, const char *filename);
a52c2257 64#endif /* __FB_BG_H__ */