orx  1.14
Portable Game Engine
orxLocale.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2022 Orx-Project
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  *
9  * Permission is granted to anyone to use this software for any purpose,
10  * including commercial applications, and to alter it and redistribute it
11  * freely, subject to the following restrictions:
12  *
13  * 1. The origin of this software must not be misrepresented; you must not
14  * claim that you wrote the original software. If you use this software
15  * in a product, an acknowledgment in the product documentation would be
16  * appreciated but is not required.
17  *
18  * 2. Altered source versions must be plainly marked as such, and must not be
19  * misrepresented as being the original software.
20  *
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  */
24 
43 #ifndef __orxLOCALE_H_
44 #define __orxLOCALE_H_
45 
46 
47 #include "orxInclude.h"
48 
49 
52 typedef enum __orxLOCALE_EVENT_t
53 {
58 
59  orxLOCALE_EVENT_NONE = orxENUM_NONE
60 
62 
65 typedef struct __orxLOCALE_EVENT_PAYLOAD_t
66 {
67  const orxSTRING zLanguage;
68  const orxSTRING zGroup;
69  const orxSTRING zStringKey;
70  const orxSTRING zStringValue;
73 
74 
77 extern orxDLLAPI void orxFASTCALL orxLocale_Setup();
78 
82 extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init();
83 
86 extern orxDLLAPI void orxFASTCALL orxLocale_Exit();
87 
88 
93 extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage(const orxSTRING _zLanguage, const orxSTRING _zGroup);
94 
99 extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage(const orxSTRING _zGroup);
100 
105 extern orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage(const orxSTRING _zLanguage);
106 
110 extern orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount();
111 
116 extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage(orxU32 _u32LanguageIndex);
117 
118 
124 extern orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString(const orxSTRING _zKey, const orxSTRING _zGroup);
125 
131 extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString(const orxSTRING _zKey, const orxSTRING _zGroup);
132 
139 extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString(const orxSTRING _zKey, const orxSTRING _zValue, const orxSTRING _zGroup);
140 
145 extern orxDLLAPI orxU32 orxFASTCALL orxLocale_GetKeyCount(const orxSTRING _zGroup);
146 
152 extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetKey(orxU32 _u32KeyIndex, const orxSTRING _zGroup);
153 
154 #endif /*__orxLOCALE_H_*/
155 
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage(const orxSTRING _zLanguage)
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage(const orxSTRING _zLanguage, const orxSTRING _zGroup)
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetKey(orxU32 _u32KeyIndex, const orxSTRING _zGroup)
orxDLLAPI void orxFASTCALL orxLocale_Setup()
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init()
orxDLLAPI void orxFASTCALL orxLocale_Exit()
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage(const orxSTRING _zGroup)
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage(orxU32 _u32LanguageIndex)
const orxSTRING zStringValue
Definition: orxLocale.h:70
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetKeyCount(const orxSTRING _zGroup)
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString(const orxSTRING _zKey, const orxSTRING _zGroup)
const orxSTRING zLanguage
Definition: orxLocale.h:67
orxSTATUS
Definition: orxType.h:256
const orxSTRING zGroup
Definition: orxLocale.h:68
orxLOCALE_EVENT
Definition: orxLocale.h:52
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString(const orxSTRING _zKey, const orxSTRING _zGroup)
#define orxDLLAPI
Definition: orxDecl.h:370
const orxSTRING zStringKey
Definition: orxLocale.h:69
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount()
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString(const orxSTRING _zKey, const orxSTRING _zValue, const orxSTRING _zGroup)

Generated for orx by doxygen 1.8.11