initial import for sdlhaa & sdlhim
[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_HILDON_NON_COMPOSITED_WINDOW = 0,
24         ATOM_HILDON_STACKABLE_WINDOW,
25         ATOM_NET_WM_STATE,
26         ATOM_NET_WM_STATE_FULLSCREEN,
27         ATOM_NET_WM_WINDOW_TYPE,
28         ATOM_NET_WM_WINDOW_TYPE_NORMAL,
29         ATOM_NET_WM_WINDOW_TYPE_DIALOG,
30         ATOM_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR,
31         ATOM_HILDON_ANIMATION_CLIENT_READY,
32         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW,
33         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION,
34         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION,
35         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE,
36         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR,
37         ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT,
38         ATOM_COUNT
39 };
40
41 static const char * atom_names[] = {
42         "_HILDON_NON_COMPOSITED_WINDOW",
43         "_HILDON_STACKABLE_WINDOW",
44         "_NET_WM_STATE",
45         "_NET_WM_STATE_FULLSCREEN",
46         "_NET_WM_WINDOW_TYPE",
47         "_NET_WM_WINDOW_TYPE_NORMAL",
48         "_NET_WM_WINDOW_TYPE_DIALOG",
49         "_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR",
50         "_HILDON_ANIMATION_CLIENT_READY",
51         "_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW",        
52         "_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION",
53         "_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION",
54         "_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE",
55         "_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR",
56         "_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT",
57         ""
58 };
59
60 static Atom atom_values[ATOM_COUNT];
61
62 #define ATOM(X) atom_values[ ATOM ## X ]
63