orx  1.14
Portable Game Engine
orxText.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 _orxTEXT_H_
44 #define _orxTEXT_H_
45 
46 #include "orxInclude.h"
47 
48 #include "display/orxFont.h"
49 
50 
53 #define orxTEXT_KZ_LOCALE_GROUP "Text"
54 
55 
57 typedef struct __orxTEXT_t orxTEXT;
58 
59 
62 extern orxDLLAPI void orxFASTCALL orxText_Setup();
63 
67 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_Init();
68 
71 extern orxDLLAPI void orxFASTCALL orxText_Exit();
72 
73 
77 extern orxDLLAPI orxTEXT *orxFASTCALL orxText_Create();
78 
83 extern orxDLLAPI orxTEXT *orxFASTCALL orxText_CreateFromConfig(const orxSTRING _zConfigID);
84 
89 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_Delete(orxTEXT *_pstText);
90 
91 
96 extern orxDLLAPI const orxSTRING orxFASTCALL orxText_GetName(const orxTEXT *_pstText);
97 
102 extern orxDLLAPI orxU32 orxFASTCALL orxText_GetLineCount(const orxTEXT *_pstText);
103 
111 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_GetLineSize(const orxTEXT *_pstText, orxU32 _u32Line, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight);
112 
117 extern orxDLLAPI orxBOOL orxFASTCALL orxText_IsFixedSize(const orxTEXT *_pstText);
118 
119 
126 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_GetSize(const orxTEXT *_pstText, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight);
127 
132 extern orxDLLAPI const orxSTRING orxFASTCALL orxText_GetString(const orxTEXT *_pstText);
133 
138 extern orxDLLAPI orxFONT *orxFASTCALL orxText_GetFont(const orxTEXT *_pstText);
139 
140 
148 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetSize(orxTEXT *_pstText, orxFLOAT _fWidth, orxFLOAT _fHeight, const orxSTRING *_pzExtra);
149 
155 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetString(orxTEXT *_pstText, const orxSTRING _zString);
156 
162 extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetFont(orxTEXT *_pstText, orxFONT *_pstFont);
163 
164 #endif /* _orxTEXT_H_ */
165 
orxDLLAPI orxFONT *orxFASTCALL orxText_GetFont(const orxTEXT *_pstText)
orxDLLAPI const orxSTRING orxFASTCALL orxText_GetString(const orxTEXT *_pstText)
orxDLLAPI const orxSTRING orxFASTCALL orxText_GetName(const orxTEXT *_pstText)
orxDLLAPI orxSTATUS orxFASTCALL orxText_SetSize(orxTEXT *_pstText, orxFLOAT _fWidth, orxFLOAT _fHeight, const orxSTRING *_pzExtra)
orxDLLAPI orxSTATUS orxFASTCALL orxText_Delete(orxTEXT *_pstText)
orxDLLAPI orxSTATUS orxFASTCALL orxText_SetString(orxTEXT *_pstText, const orxSTRING _zString)
orxDLLAPI orxSTATUS orxFASTCALL orxText_SetFont(orxTEXT *_pstText, orxFONT *_pstFont)
orxDLLAPI orxSTATUS orxFASTCALL orxText_GetSize(const orxTEXT *_pstText, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
orxDLLAPI void orxFASTCALL orxText_Setup()
orxSTATUS
Definition: orxType.h:256
orxDLLAPI orxSTATUS orxFASTCALL orxText_GetLineSize(const orxTEXT *_pstText, orxU32 _u32Line, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
orxDLLAPI orxBOOL orxFASTCALL orxText_IsFixedSize(const orxTEXT *_pstText)
#define orxDLLAPI
Definition: orxDecl.h:370
orxDLLAPI orxSTATUS orxFASTCALL orxText_Init()
orxDLLAPI orxU32 orxFASTCALL orxText_GetLineCount(const orxTEXT *_pstText)
orxDLLAPI void orxFASTCALL orxText_Exit()
orxDLLAPI orxTEXT *orxFASTCALL orxText_Create()
struct __orxTEXT_t orxTEXT
Definition: orxText.h:57
orxDLLAPI orxTEXT *orxFASTCALL orxText_CreateFromConfig(const orxSTRING _zConfigID)
struct __orxFONT_t orxFONT
Definition: orxFont.h:58

Generated for orx by doxygen 1.8.11