2 * This file is part of Live Wallpaper (livewp)
4 * Copyright (C) 2010 Vlad Vasiliev
5 * Copyright (C) 2010 Tanya Makova
8 * This software is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This software is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this software; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 /*******************************************************************************/
24 #ifndef Animation_Wallpaper_PLUGIN_H
25 #define Animation_Wallpaper_PLUGIN_H
27 #include <glib-object.h>
32 #define Animation_Wallpaper_TYPE_HOME_PLUGIN (animation_wallpaper_plugin_get_type ())
34 #define Animation_Wallpaper_HOME_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35 Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperPlugin))
37 #define Animation_Wallpaper_HOME_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
38 Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperPluginClass))
40 #define Animation_Wallpaper_IS_HOME_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
41 Animation_Wallpaper_TYPE_HOME_PLUGIN))
43 #define Animation_Wallpaper_IS_HOME_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
44 Animation_Wallpaper_TYPE_HOME_PLUGIN))
46 #define Animation_Wallpaper_HOME_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47 Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperPluginClass))
60 void (*func_change)(GtkWidget *, double);
61 gint (*func_time)(gint);
65 GType animation_wallpaper_plugin_get_type(void);
69 void lw_settings(GtkWidget *widget, gpointer user_data);
70 MultiActor *multiactor_init(gchar * name, GSList * child, gint x, gint y, gint z, double scale, gboolean visible);
71 void multiactor_set_visible(MultiActor *ma, gboolean visible);
72 void multiactor_set_scale(MultiActor *ma, double scale);
73 void multiactor_set_position(MultiActor *ma, gint dx, gint dy, gint dz);
74 void actor_set_position_full(GtkWidget *actor, gint x, gint y, gint z);
75 gint read_config(Animation_WallpaperPrivate *priv);
76 void save_config(Animation_WallpaperPrivate *priv);
77 static void init_scene(AWallpaperPlugin *desktop_plugin);
78 static void init_scene1(AWallpaperPlugin *desktop_plugin);