reworked reparents
[sdlhildon] / sdlhaa / src / atoms.inc
1 /* This file is part of SDL_haa - SDL addon for Hildon Animation Actors
2  * Copyright (C) 2010 Javier S. Pedro
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
18  */
19
20 /* Definitions for all the atoms the library is going to use */
21
22 enum atoms {
23         ATOM_NET_WM_STATE,
24         ATOM_NET_WM_STATE_FULLSCREEN,
25         ATOM_NET_WM_WINDOW_TYPE,
26         ATOM_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR,
27         ATOM_HILDON_ANIMATION_CLIENT_READY,
28         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW,
29         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION,
30         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION,
31         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE,
32         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR,
33         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT,
34         ATOM_COUNT
35 };
36
37 static const char * atom_names[] = {
38         "_NET_WM_STATE",
39         "_NET_WM_STATE_FULLSCREEN",
40         "_NET_WM_WINDOW_TYPE",
41         "_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR",
42         "_HILDON_ANIMATION_CLIENT_READY",
43         "_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW",        
44         "_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION",
45         "_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION",
46         "_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE",
47         "_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR",
48         "_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT",
49         ""
50 };
51
52 static Atom atom_values[ATOM_COUNT];
53
54 #define ATOM(X) atom_values[ ATOM ## X ]
55