/*
* Copyright (C) 2007 Intel Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authored by Neil Jagdish Patel
*
*/
/* This is a utility ClutterBehaviour-derived class, in which you can set the
alphanotify function. It is useful for situations where you do not need the
full capabilities of the ClutterBehvaiour class, you just want a function to
be called for each iteration along the timeline
*/
#ifndef _LAUNCHER_BEHAVE_H_
#define _LAUNCHER_BEHAVE_H_
#include
#include
#define LAUNCHER_TYPE_BEHAVE (launcher_behave_get_type ())
#define LAUNCHER_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
LAUNCHER_TYPE_BEHAVE, LauncherBehave))
#define LAUNCHER_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
#define CLUTTER_IS_BEHAVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
LAUNCHER_TYPE_BEHAVE))
#define CLUTTER_IS_BEHAVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
LAUNCHER_TYPE_BEHAVE))
#define LAUNCHER_BEHAVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
LAUNCHER_TYPE_BEHAVE, LauncherBehaveClass))
typedef struct _LauncherBehave LauncherBehave;
typedef struct _LauncherBehaveClass LauncherBehaveClass;
typedef struct _LauncherBehavePrivate LauncherBehavePrivate;
struct _LauncherBehave
{
ClutterBehaviour parent;
};
struct _LauncherBehaveClass
{
ClutterBehaviourClass parent_class;
};
typedef void (*LauncherBehaveAlphaFunc) (ClutterBehaviour *behave,
guint32 alpha_value,
gpointer data);
GType launcher_behave_get_type (void) G_GNUC_CONST;
ClutterBehaviour*
launcher_behave_new (ClutterAlpha *alpha,
LauncherBehaveAlphaFunc func,
gpointer data);
typedef struct _LauncherTextColourPair LauncherTextColourPair;
struct _LauncherTextColourPair
{
ClutterColor *from;
ClutterColor *to;
};
void
launcher_colour_behaviour(ClutterBehaviour *behave,
guint32 alpha_value,
gpointer data);
#endif /* _LAUNCHER_BEHAVE_H_ */