ui_parse.h

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 2002-2010 UFO: Alien Invasion.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef CLIENT_UI_UI_PARSE_H
00026 #define CLIENT_UI_UI_PARSE_H
00027 
00028 #include "../../common/scripts.h"
00029 
00030 struct uiNode_s;
00031 struct uiAction_s;
00032 struct value_s;
00033 
00034 void UI_ParseWindow(const char *type, const char *name, const char **text);
00035 void UI_ParseComponent(const char *type, const char **text);
00036 void UI_ParseIcon(const char *name, const char **text);
00037 void UI_ParseUIModel(const char *name, const char **text);
00038 float UI_GetReferenceFloat(const struct uiNode_s* const node, const void *ref);
00039 const char *UI_GetReferenceString(const struct uiNode_s* const node, const char *ref) __attribute__ ((warn_unused_result));
00040 const value_t* UI_FindPropertyByName(const value_t* propertyList, const char* name) __attribute__ ((warn_unused_result));
00041 char* UI_AllocStaticString(const char* string, int size) __attribute__ ((warn_unused_result));
00042 float* UI_AllocStaticFloat(int count) __attribute__ ((warn_unused_result));
00043 vec4_t* UI_AllocStaticColor(int count) __attribute__ ((warn_unused_result));
00044 struct uiAction_s *UI_AllocStaticAction(void) __attribute__ ((warn_unused_result));
00045 qboolean UI_InitRawActionValue(struct uiAction_s* action, struct uiNode_s *node, const struct value_s *property, const char *string);
00046 
00047 /* main special type */
00049 #define V_UI_MASK           0x8F00          
00050 #define V_UI                0x8000          
00051 #define V_NOT_UI            0
00052 #define V_UI_ACTION         (V_UI + 0)      
00053 #define V_UI_EXCLUDERECT    (V_UI + 1)      
00054 #define V_UI_ICONREF        (V_UI + 2)      
00055 #define V_UI_IF             (V_UI + 3)      
00056 #define V_UI_DATAID         (V_UI + 4)
00057 #define V_UI_CVAR           (V_UI + 0x0100) 
00058 #define V_UI_REF            (V_UI + 0x0200) 
00059 #define V_UI_NODEMETHOD     (V_UI + 0x0400) 
00061 /* alias */
00062 #define V_UI_ALIGN          V_INT
00063 
00064 /* composite special type */
00065 #define V_CVAR_OR_FLOAT         (V_UI_CVAR + V_FLOAT)
00066 #define V_CVAR_OR_STRING        (V_UI_CVAR + V_STRING)
00067 #define V_CVAR_OR_LONGSTRING    (V_UI_CVAR + V_LONGSTRING)
00068 #define V_REF_OF_STRING         (V_UI_REF + V_STRING)
00069 
00070 #endif

Generated by  doxygen 1.6.2