~ubuntu-branches/ubuntu/wily/mutter/wily

« back to all changes in this revision

Viewing changes to src/compositor/meta-background-actor.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-30 10:56:20 UTC
  • Revision ID: james.westby@ubuntu.com-20101130105620-5pg8qjx4fn4nt00b
Tags: 2.91.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
/*
 
3
 * meta-background-actor.h: Actor for painting the root window background
 
4
 *
 
5
 * Copyright 2010 Red Hat, Inc.
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
20
 * 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef META_BACKGROUND_ACTOR_H
 
24
#define META_BACKGROUND_ACTOR_H
 
25
 
 
26
#include <clutter/clutter.h>
 
27
 
 
28
#include "screen.h"
 
29
 
 
30
/**
 
31
 * MetaBackgroundActor:
 
32
 *
 
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.
 
36
 */
 
37
 
 
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))
 
44
 
 
45
typedef struct _MetaBackgroundActor        MetaBackgroundActor;
 
46
typedef struct _MetaBackgroundActorClass   MetaBackgroundActorClass;
 
47
typedef struct _MetaBackgroundActorPrivate MetaBackgroundActorPrivate;
 
48
 
 
49
GType meta_background_actor_get_type (void);
 
50
 
 
51
ClutterActor *meta_background_actor_new (MetaScreen *screen);
 
52
 
 
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);
 
57
 
 
58
#endif /* META_BACKGROUND_ACTOR_H */