2
* Copyright (C) 2007 Intel
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.
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.
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.
19
* Authored by Neil Jagdish Patel <njp@o-hand.com>
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
29
#ifndef _LAUNCHER_BEHAVE_H_
30
#define _LAUNCHER_BEHAVE_H_
32
#include <glib-object.h>
33
#include <clutter/clutter.h>
35
#define LAUNCHER_TYPE_BEHAVE (launcher_behave_get_type ())
37
#define LAUNCHER_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
38
LAUNCHER_TYPE_BEHAVE, LauncherBehave))
40
#define LAUNCHER_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
41
LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
43
#define CLUTTER_IS_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
44
LAUNCHER_TYPE_BEHAVE))
46
#define CLUTTER_IS_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
47
LAUNCHER_TYPE_BEHAVE))
49
#define LAUNCHER_BEHAVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
50
LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
52
typedef struct _LauncherBehave LauncherBehave;
53
typedef struct _LauncherBehaveClass LauncherBehaveClass;
54
typedef struct _LauncherBehavePrivate LauncherBehavePrivate;
56
struct _LauncherBehave
58
ClutterBehaviour parent;
61
struct _LauncherBehaveClass
63
ClutterBehaviourClass parent_class;
66
typedef void (*LauncherBehaveAlphaFunc) (ClutterBehaviour *behave,
70
GType launcher_behave_get_type (void) G_GNUC_CONST;
73
launcher_behave_new (ClutterAlpha *alpha,
74
LauncherBehaveAlphaFunc func,
78
#endif /* _LAUNCHER_BEHAVE_H_ */