X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=sdlhaa%2Fsrc%2Fatoms.inc;fp=sdlhaa%2Fsrc%2Fatoms.inc;h=776c61d7e71e4010a24b3f42cd57c0c6ff11a96e;hb=4fed23fec414328a2135440d7a936e9b1604283f;hp=0000000000000000000000000000000000000000;hpb=effcd03c8ab831f04aee0b4ae836a5aef94da0fb;p=sdlhildon diff --git a/sdlhaa/src/atoms.inc b/sdlhaa/src/atoms.inc new file mode 100644 index 0000000..776c61d --- /dev/null +++ b/sdlhaa/src/atoms.inc @@ -0,0 +1,63 @@ +/* This file is part of SDL_haa - SDL addon for Hildon Animation Actors + * Copyright (C) 2010 Javier S. Pedro + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA or see . + */ + +/* Definitions for all the atoms the library is going to use */ + +enum atoms { + ATOM_HILDON_NON_COMPOSITED_WINDOW = 0, + ATOM_HILDON_STACKABLE_WINDOW, + ATOM_NET_WM_STATE, + ATOM_NET_WM_STATE_FULLSCREEN, + ATOM_NET_WM_WINDOW_TYPE, + ATOM_NET_WM_WINDOW_TYPE_NORMAL, + ATOM_NET_WM_WINDOW_TYPE_DIALOG, + ATOM_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR, + ATOM_HILDON_ANIMATION_CLIENT_READY, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR, + ATOM_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT, + ATOM_COUNT +}; + +static const char * atom_names[] = { + "_HILDON_NON_COMPOSITED_WINDOW", + "_HILDON_STACKABLE_WINDOW", + "_NET_WM_STATE", + "_NET_WM_STATE_FULLSCREEN", + "_NET_WM_WINDOW_TYPE", + "_NET_WM_WINDOW_TYPE_NORMAL", + "_NET_WM_WINDOW_TYPE_DIALOG", + "_HILDON_WM_WINDOW_TYPE_ANIMATION_ACTOR", + "_HILDON_ANIMATION_CLIENT_READY", + "_HILDON_ANIMATION_CLIENT_MESSAGE_SHOW", + "_HILDON_ANIMATION_CLIENT_MESSAGE_POSITION", + "_HILDON_ANIMATION_CLIENT_MESSAGE_ROTATION", + "_HILDON_ANIMATION_CLIENT_MESSAGE_SCALE", + "_HILDON_ANIMATION_CLIENT_MESSAGE_ANCHOR", + "_HILDON_ANIMATION_CLIENT_MESSAGE_PARENT", + "" +}; + +static Atom atom_values[ATOM_COUNT]; + +#define ATOM(X) atom_values[ ATOM ## X ] +