05c3124ffb8ceb927635ef18fbf788188c487a58
[livewp] / applet / src / livewp-actor.h
1 /*vim: set sw=4 ts=4 et: */
2 /*
3  * This file is part of Live Wallpaper (livewp)
4  * 
5  * Copyright (C) 2010 Vlad Vasiliev
6  * Copyright (C) 2010 Tanya Makova
7  *       for the code
8  * 
9  * This software is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  * 
14  * This software is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  * 
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this software; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23 */
24 /*******************************************************************************/
25 #ifndef _livewp_actor_h
26 #define _livewp_actor_h 1
27
28 #include "livewp-common.h" 
29
30
31 Actor* init_object(AWallpaperPlugin *desktop_plugin, 
32             gchar * name, 
33             gchar * filename, 
34             gint x, 
35             gint y, 
36             gint z, 
37             gint width, 
38             gint height, 
39             gboolean visible, 
40             gboolean load_image,
41             gint scale, 
42             gint opacity, 
43             void (*pfunc_change)(Actor*),
44             void (*pfunc_probability)(Actor*),
45             GPtrArray *child
46            );
47 void destroy_actor(Actor *actor);
48 void set_actor_position(Actor *actor, gint x, gint y, gint z, AWallpaperPlugin *desktop_plugin);
49 void change_moon(Actor * actor, AWallpaperPlugin *desktop_plugin);
50 void change_sun(Actor * actor, AWallpaperPlugin *desktop_plugin);
51 void change_tram(Actor * actor, AWallpaperPlugin *desktop_plugin);
52 void change_plane1(Actor *actor, AWallpaperPlugin *desktop_plugin);
53 void change_plane2(Actor *actor, AWallpaperPlugin *desktop_plugin);
54 void change_cloud(Actor *actor, AWallpaperPlugin *desktop_plugin);
55 void change_wind(Actor *actor, AWallpaperPlugin *desktop_plugin);
56 void change_window1(Actor * actor, AWallpaperPlugin *desktop_plugin);
57 void change_signal(Actor * actor, AWallpaperPlugin *desktop_plugin);
58 void change_layer(Actor * actor, AWallpaperPlugin *desktop_plugin);
59 #endif