~golfish/netbook-remix-launcher/desktop

« back to all changes in this revision

Viewing changes to src/launcher-behave.h

  • Committer: Neil J. Patel
  • Date: 2008-04-16 11:31:15 UTC
  • Revision ID: njpatel@gmail.com-20080416113115-ztljg0qms79anijd
* Inital import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2007 Intel
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * Authored by Neil Jagdish Patel <njp@o-hand.com>
 
20
 *
 
21
 */
 
22
 
 
23
/* This is a utility ClutterBehaviour-derived class, in which you can set the
 
24
   alphanotify function. It is useful for situations where you do not need the
 
25
   full capabilities of the ClutterBehvaiour class, you just want a function to
 
26
   be called for each iteration along the timeline
 
27
*/
 
28
 
 
29
#ifndef _LAUNCHER_BEHAVE_H_
 
30
#define _LAUNCHER_BEHAVE_H_
 
31
 
 
32
#include <glib-object.h>
 
33
#include <clutter/clutter.h>
 
34
 
 
35
#define LAUNCHER_TYPE_BEHAVE (launcher_behave_get_type ())
 
36
 
 
37
#define LAUNCHER_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
 
38
        LAUNCHER_TYPE_BEHAVE, LauncherBehave))
 
39
 
 
40
#define LAUNCHER_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
 
41
        LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
 
42
 
 
43
#define CLUTTER_IS_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
 
44
        LAUNCHER_TYPE_BEHAVE))
 
45
 
 
46
#define CLUTTER_IS_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
 
47
        LAUNCHER_TYPE_BEHAVE))
 
48
 
 
49
#define LAUNCHER_BEHAVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
 
50
        LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
 
51
 
 
52
typedef struct _LauncherBehave        LauncherBehave;
 
53
typedef struct _LauncherBehaveClass   LauncherBehaveClass;
 
54
typedef struct _LauncherBehavePrivate LauncherBehavePrivate;
 
55
 
 
56
struct _LauncherBehave
 
57
{
 
58
  ClutterBehaviour        parent;       
 
59
};
 
60
 
 
61
struct _LauncherBehaveClass
 
62
{
 
63
  ClutterBehaviourClass   parent_class;
 
64
};
 
65
 
 
66
typedef void (*LauncherBehaveAlphaFunc) (ClutterBehaviour *behave, 
 
67
                                      guint32                 alpha_value,
 
68
                                      gpointer                data);
 
69
 
 
70
GType launcher_behave_get_type (void) G_GNUC_CONST;
 
71
 
 
72
ClutterBehaviour* 
 
73
launcher_behave_new (ClutterAlpha         *alpha, 
 
74
                  LauncherBehaveAlphaFunc  func,
 
75
                  gpointer                        data);
 
76
 
 
77
 
 
78
#endif /* _LAUNCHER_BEHAVE_H_ */
 
79