| 1 |
/* |
| 2 |
* Clutter. |
| 3 |
* |
| 4 |
* An OpenGL based 'interactive canvas' library. |
| 5 |
* |
| 6 |
* Authored By Matthew Allum <[email protected]> |
| 7 |
* Jorn Baayen <[email protected]> |
| 8 |
* Emmanuele Bassi <[email protected]> |
| 9 |
* |
| 10 |
* Copyright (C) 2006 OpenedHand |
| 11 |
* |
| 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. |
| 16 |
* |
| 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. |
| 21 |
* |
| 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/>. |
| 24 |
*/ |
| 25 |
|
| 26 |
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) |
| 27 |
#error "Only <clutter/clutter.h> can be included directly." |
| 28 |
#endif |
| 29 |
|
| 30 |
#ifndef __CLUTTER_BEHAVIOUR_OPACITY_H__ |
| 31 |
#define __CLUTTER_BEHAVIOUR_OPACITY_H__ |
| 32 |
|
| 33 |
#include <clutter/clutter-types.h> |
| 34 |
|
| 35 |
G_BEGIN_DECLS |
| 36 |
|
| 37 |
#define CLUTTER_TYPE_BEHAVIOUR_OPACITY (clutter_behaviour_opacity_get_type ()) |
| 38 |
|
| 39 |
#define CLUTTER_BEHAVIOUR_OPACITY(obj) \ |
| 40 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \ |
| 41 |
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacity)) |
| 42 |
|
| 43 |
#define CLUTTER_BEHAVIOUR_OPACITY_CLASS(klass) \ |
| 44 |
(G_TYPE_CHECK_CLASS_CAST ((klass), \ |
| 45 |
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacityClass)) |
| 46 |
|
| 47 |
#define CLUTTER_IS_BEHAVIOUR_OPACITY(obj) \ |
| 48 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ |
| 49 |
CLUTTER_TYPE_BEHAVIOUR_OPACITY)) |
| 50 |
|
| 51 |
#define CLUTTER_IS_BEHAVIOUR_OPACITY_CLASS(klass) \ |
| 52 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), \ |
| 53 |
CLUTTER_TYPE_BEHAVIOUR_OPACITY)) |
| 54 |
|
| 55 |
#define CLUTTER_BEHAVIOUR_OPACITY_GET_CLASS(obj) \ |
| 56 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), \ |
| 57 |
CLUTTER_TYPE_BEHAVIOUR_OPACITY, ClutterBehaviourOpacityClass)) |
| 58 |
|
| 59 |
typedef struct _ClutterBehaviourOpacity ClutterBehaviourOpacity; |
| 60 |
typedef struct _ClutterBehaviourOpacityPrivate ClutterBehaviourOpacityPrivate; |
| 61 |
typedef struct _ClutterBehaviourOpacityClass ClutterBehaviourOpacityClass; |
| 62 |
|
| 63 |
/** |
| 64 |
* ClutterBehaviourOpacity: |
| 65 |
* |
| 66 |
* The #ClutterBehaviourOpacity structure contains only private data and |
| 67 |
* should be accessed using the provided API |
| 68 |
* |
| 69 |
* Since: 0.2 |
| 70 |
* |
| 71 |
* Deprecated: 1.6: Use clutter_actor_animate() and #ClutterActor:opacity |
| 72 |
* instead. |
| 73 |
*/ |
| 74 |
struct _ClutterBehaviourOpacity |
| 75 |
{ |
| 76 |
/*< private >*/ |
| 77 |
ClutterBehaviour parent; |
| 78 |
ClutterBehaviourOpacityPrivate *priv; |
| 79 |
}; |
| 80 |
|
| 81 |
/** |
| 82 |
* ClutterBehaviourOpacityClass: |
| 83 |
* |
| 84 |
* The #ClutterBehaviourOpacityClass structure contains only private data |
| 85 |
* |
| 86 |
* Since: 0.2 |
| 87 |
* |
| 88 |
* Deprecated: 1.6 |
| 89 |
*/ |
| 90 |
struct _ClutterBehaviourOpacityClass |
| 91 |
{ |
| 92 |
/*< private >*/ |
| 93 |
ClutterBehaviourClass parent_class; |
| 94 |
}; |
| 95 |
|
| 96 |
CLUTTER_DEPRECATED_IN_1_6 |
| 97 |
GType clutter_behaviour_opacity_get_type (void) G_GNUC_CONST; |
| 98 |
|
| 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, |
| 102 |
guint8 opacity_end); |
| 103 |
|
| 104 |
CLUTTER_DEPRECATED_IN_1_6 |
| 105 |
void clutter_behaviour_opacity_set_bounds (ClutterBehaviourOpacity *behaviour, |
| 106 |
guint8 opacity_start, |
| 107 |
guint8 opacity_end); |
| 108 |
CLUTTER_DEPRECATED_IN_1_6 |
| 109 |
void clutter_behaviour_opacity_get_bounds (ClutterBehaviourOpacity *behaviour, |
| 110 |
guint8 *opacity_start, |
| 111 |
guint8 *opacity_end); |
| 112 |
|
| 113 |
G_END_DECLS |
| 114 |
|
| 115 |
#endif /* __CLUTTER_BEHAVIOUR_OPACITY_H__ */ |