orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxLocale.h
Go to the documentation of this file.
1/* Orx - Portable Game Engine
2 *
3 * Copyright (c) 2008- 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
32
41
42
43#ifndef __orxLOCALE_H_
44#define __orxLOCALE_H_
45
46
47#include "orxInclude.h"
48
49
62
65typedef struct __orxLOCALE_EVENT_PAYLOAD_t
66{
67 const orxSTRING zLanguage;
68 const orxSTRING zGroup;
69 const orxSTRING zStringKey;
70 const orxSTRING zStringValue;
71
73
75typedef orxBOOL (orxFASTCALL *orxLOCALE_KEY_FUNCTION)(const orxSTRING _zKey, const orxSTRING _zGroup, void *_pContext);
76
77
80extern orxDLLAPI void orxFASTCALL orxLocale_Setup();
81
85extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init();
86
89extern orxDLLAPI void orxFASTCALL orxLocale_Exit();
90
91
96extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage(const orxSTRING _zLanguage, const orxSTRING _zGroup);
97
102extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage(const orxSTRING _zGroup);
103
108extern orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage(const orxSTRING _zLanguage);
109
113extern orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount();
114
119extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage(orxU32 _u32LanguageIndex);
120
121
127extern orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString(const orxSTRING _zKey, const orxSTRING _zGroup);
128
134extern orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString(const orxSTRING _zKey, const orxSTRING _zGroup);
135
142extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString(const orxSTRING _zKey, const orxSTRING _zValue, const orxSTRING _zGroup);
143
150extern orxDLLAPI orxSTATUS orxFASTCALL orxLocale_ForAllKeys(const orxLOCALE_KEY_FUNCTION _pfnKeyCallback, const orxSTRING _zGroup, void *_pContext);
151
152#endif /*__orxLOCALE_H_*/
153
#define orxDLLAPI
Definition orxDecl.h:381
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString(const orxSTRING _zKey, const orxSTRING _zGroup)
orxDLLAPI void orxFASTCALL orxLocale_Exit()
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage(orxU32 _u32LanguageIndex)
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString(const orxSTRING _zKey, const orxSTRING _zValue, const orxSTRING _zGroup)
orxLOCALE_EVENT
Definition orxLocale.h:53
orxBOOL(orxFASTCALL * orxLOCALE_KEY_FUNCTION)(const orxSTRING _zKey, const orxSTRING _zGroup, void *_pContext)
Definition orxLocale.h:75
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage(const orxSTRING _zLanguage, const orxSTRING _zGroup)
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage(const orxSTRING _zLanguage)
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage(const orxSTRING _zGroup)
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_ForAllKeys(const orxLOCALE_KEY_FUNCTION _pfnKeyCallback, const orxSTRING _zGroup, void *_pContext)
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount()
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init()
orxDLLAPI void orxFASTCALL orxLocale_Setup()
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString(const orxSTRING _zKey, const orxSTRING _zGroup)
@ orxLOCALE_EVENT_NUMBER
Definition orxLocale.h:57
@ orxLOCALE_EVENT_NONE
Definition orxLocale.h:59
@ orxLOCALE_EVENT_SET_STRING
Definition orxLocale.h:55
@ orxLOCALE_EVENT_SELECT_LANGUAGE
Definition orxLocale.h:54
orxSTATUS
Definition orxType.h:270
const orxSTRING zStringKey
Definition orxLocale.h:69
const orxSTRING zLanguage
Definition orxLocale.h:67
const orxSTRING zStringValue
Definition orxLocale.h:70
const orxSTRING zGroup
Definition orxLocale.h:68

Generated for orx by doxygen 1.8.11