1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
* meta-background-actor.h: for painting the root window background
5
* Copyright 2010 Red Hat, Inc.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, see <http://www.gnu.org/licenses/>.
21
#ifndef META_BACKGROUND_H
22
#define META_BACKGROUND_H
24
#include <clutter/clutter.h>
25
#include <gsettings-desktop-schemas/gdesktop-enums.h>
26
#include <meta/screen.h>
31
* This class handles tracking and painting the root window background.
32
* By integrating with #MetaWindowGroup we can avoid painting parts of
33
* the background that are obscured by other windows.
36
#define META_TYPE_BACKGROUND (meta_background_get_type ())
37
#define META_BACKGROUND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_BACKGROUND, MetaBackground))
38
#define META_BACKGROUND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_BACKGROUND, MetaBackgroundClass))
39
#define META_IS_BACKGROUND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_BACKGROUND))
40
#define META_IS_BACKGROUND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_BACKGROUND))
41
#define META_BACKGROUND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_BACKGROUND, MetaBackgroundClass))
43
typedef struct _MetaBackground MetaBackground;
44
typedef struct _MetaBackgroundClass MetaBackgroundClass;
45
typedef struct _MetaBackgroundPrivate MetaBackgroundPrivate;
47
struct _MetaBackgroundClass
50
GObjectClass parent_class;
53
struct _MetaBackground
57
MetaBackgroundPrivate *priv;
60
void meta_background_refresh_all (void);
62
GType meta_background_get_type (void);
64
MetaBackground *meta_background_new (MetaScreen *screen);
66
void meta_background_set_color (MetaBackground *self,
68
void meta_background_set_gradient (MetaBackground *self,
69
GDesktopBackgroundShading shading_direction,
71
ClutterColor *second_color);
72
void meta_background_set_file (MetaBackground *self,
74
GDesktopBackgroundStyle style);
75
void meta_background_set_blend (MetaBackground *self,
79
GDesktopBackgroundStyle style);
81
#endif /* META_BACKGROUND_H */