4
* An OpenGL based 'interactive canvas' library.
6
* Authored By Matthew Allum <mallum@openedhand.com>
7
* Jorn Baayen <jorn@openedhand.com>
8
* Emmanuele Bassi <ebassi@openedhand.com>
10
* Copyright (C) 2006 OpenedHand
12
* This library is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU Lesser General Public
14
* License as published by the Free Software Foundation; either
15
* version 2 of the License, or (at your option) any later version.
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Lesser General Public License for more details.
22
* You should have received a copy of the GNU Lesser General Public
23
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
26
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
27
#error "Only <clutter/clutter.h> can be included directly."
30
#ifndef __CLUTTER_BEHAVIOUR_OPACITY_H__
31
#define __CLUTTER_BEHAVIOUR_OPACITY_H__
33
#include <clutter/clutter-types.h>
37
#define CLUTTER_TYPE_BEHAVIOUR_OPACITY (clutter_behaviour_opacity_get_type ())
39
#define CLUTTER_BEHAVIOUR_OPACITY(obj) \
40
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
41
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacity))
43
#define CLUTTER_BEHAVIOUR_OPACITY_CLASS(klass) \
44
(G_TYPE_CHECK_CLASS_CAST ((klass), \
45
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacityClass))
47
#define CLUTTER_IS_BEHAVIOUR_OPACITY(obj) \
48
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
49
CLUTTER_TYPE_BEHAVIOUR_OPACITY))
51
#define CLUTTER_IS_BEHAVIOUR_OPACITY_CLASS(klass) \
52
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
53
CLUTTER_TYPE_BEHAVIOUR_OPACITY))
55
#define CLUTTER_BEHAVIOUR_OPACITY_GET_CLASS(obj) \
56
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
57
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacityClass))
59
typedef struct _ClutterBehaviourOpacity ClutterBehaviourOpacity;
60
typedef struct _ClutterBehaviourOpacityPrivate ClutterBehaviourOpacityPrivate;
61
typedef struct _ClutterBehaviourOpacityClass ClutterBehaviourOpacityClass;
64
* ClutterBehaviourOpacity:
66
* The #ClutterBehaviourOpacity structure contains only private data and
67
* should be accessed using the provided API
71
* Deprecated: 1.6: Use clutter_actor_animate() and #ClutterActor:opacity
74
struct _ClutterBehaviourOpacity
77
ClutterBehaviour parent;
78
ClutterBehaviourOpacityPrivate *priv;
82
* ClutterBehaviourOpacityClass:
84
* The #ClutterBehaviourOpacityClass structure contains only private data
90
struct _ClutterBehaviourOpacityClass
93
ClutterBehaviourClass parent_class;
96
CLUTTER_DEPRECATED_IN_1_6
97
GType clutter_behaviour_opacity_get_type (void) G_GNUC_CONST;
99
CLUTTER_DEPRECATED_IN_1_6_FOR(clutter_actor_animate and ClutterActor:opacity)
100
ClutterBehaviour *clutter_behaviour_opacity_new (ClutterAlpha *alpha,
101
guint8 opacity_start,
104
CLUTTER_DEPRECATED_IN_1_6
105
void clutter_behaviour_opacity_set_bounds (ClutterBehaviourOpacity *behaviour,
106
guint8 opacity_start,
108
CLUTTER_DEPRECATED_IN_1_6
109
void clutter_behaviour_opacity_get_bounds (ClutterBehaviourOpacity *behaviour,
110
guint8 *opacity_start,
111
guint8 *opacity_end);
115
#endif /* __CLUTTER_BEHAVIOUR_OPACITY_H__ */