1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
* meta-background-actor.h: Actor 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, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23
#ifndef META_BACKGROUND_ACTOR_H
24
#define META_BACKGROUND_ACTOR_H
26
#include <clutter/clutter.h>
31
* MetaBackgroundActor:
33
* This class handles tracking and painting the root window background.
34
* By integrating with #MetaWindowGroup we can avoid painting parts of
35
* the background that are obscured by other windows.
38
#define META_TYPE_BACKGROUND_ACTOR (meta_background_actor_get_type ())
39
#define META_BACKGROUND_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_BACKGROUND_ACTOR, MetaBackgroundActor))
40
#define META_BACKGROUND_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_BACKGROUND_ACTOR, MetaBackgroundActorClass))
41
#define META_IS_BACKGROUND_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_BACKGROUND_ACTOR))
42
#define META_IS_BACKGROUND_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_BACKGROUND_ACTOR))
43
#define META_BACKGROUND_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_BACKGROUND_ACTOR, MetaBackgroundActorClass))
45
typedef struct _MetaBackgroundActor MetaBackgroundActor;
46
typedef struct _MetaBackgroundActorClass MetaBackgroundActorClass;
47
typedef struct _MetaBackgroundActorPrivate MetaBackgroundActorPrivate;
49
GType meta_background_actor_get_type (void);
51
ClutterActor *meta_background_actor_new (MetaScreen *screen);
53
void meta_background_actor_update (MetaBackgroundActor *actor);
54
void meta_background_actor_set_visible_region (MetaBackgroundActor *self,
55
cairo_region_t *visible_region);
56
void meta_background_actor_screen_size_changed (MetaBackgroundActor *self);
58
#endif /* META_BACKGROUND_ACTOR_H */