orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxText.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 _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
57typedef struct __orxTEXT_t orxTEXT;
58
59
62extern orxDLLAPI void orxFASTCALL orxText_Setup();
63
67extern orxDLLAPI orxSTATUS orxFASTCALL orxText_Init();
68
71extern orxDLLAPI void orxFASTCALL orxText_Exit();
72
73
77extern orxDLLAPI orxTEXT *orxFASTCALL orxText_Create();
78
83extern orxDLLAPI orxTEXT *orxFASTCALL orxText_CreateFromConfig(const orxSTRING _zConfigID);
84
89extern orxDLLAPI orxSTATUS orxFASTCALL orxText_Delete(orxTEXT *_pstText);
90
91
96extern orxDLLAPI const orxSTRING orxFASTCALL orxText_GetName(const orxTEXT *_pstText);
97
102extern orxDLLAPI orxU32 orxFASTCALL orxText_GetLineCount(const orxTEXT *_pstText);
103
111extern orxDLLAPI orxSTATUS orxFASTCALL orxText_GetLineSize(const orxTEXT *_pstText, orxU32 _u32Line, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight);
112
117extern orxDLLAPI orxBOOL orxFASTCALL orxText_IsFixedSize(const orxTEXT *_pstText);
118
119
126extern orxDLLAPI orxSTATUS orxFASTCALL orxText_GetSize(const orxTEXT *_pstText, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight);
127
132extern orxDLLAPI const orxSTRING orxFASTCALL orxText_GetString(const orxTEXT *_pstText);
133
138extern orxDLLAPI orxFONT *orxFASTCALL orxText_GetFont(const orxTEXT *_pstText);
139
140
148extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetSize(orxTEXT *_pstText, orxFLOAT _fWidth, orxFLOAT _fHeight, const orxSTRING *_pzExtra);
149
155extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetString(orxTEXT *_pstText, const orxSTRING _zString);
156
162extern orxDLLAPI orxSTATUS orxFASTCALL orxText_SetFont(orxTEXT *_pstText, orxFONT *_pstFont);
163
164#endif /* _orxTEXT_H_ */
165
#define orxDLLAPI
Definition orxDecl.h:381
#define orxFONT(STRUCTURE)
#define orxTEXT(STRUCTURE)
orxDLLAPI orxSTATUS orxFASTCALL orxText_GetLineSize(const orxTEXT *_pstText, orxU32 _u32Line, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
orxDLLAPI orxSTATUS orxFASTCALL orxText_Init()
orxDLLAPI orxFONT *orxFASTCALL orxText_GetFont(const orxTEXT *_pstText)
orxDLLAPI orxSTATUS orxFASTCALL orxText_SetString(orxTEXT *_pstText, const orxSTRING _zString)
orxDLLAPI const orxSTRING orxFASTCALL orxText_GetName(const orxTEXT *_pstText)
orxDLLAPI const orxSTRING orxFASTCALL orxText_GetString(const orxTEXT *_pstText)
orxDLLAPI orxU32 orxFASTCALL orxText_GetLineCount(const orxTEXT *_pstText)
orxDLLAPI orxBOOL orxFASTCALL orxText_IsFixedSize(const orxTEXT *_pstText)
orxDLLAPI orxTEXT *orxFASTCALL orxText_Create()
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()
orxDLLAPI void orxFASTCALL orxText_Exit()
orxDLLAPI orxSTATUS orxFASTCALL orxText_SetSize(orxTEXT *_pstText, orxFLOAT _fWidth, orxFLOAT _fHeight, const orxSTRING *_pzExtra)
orxDLLAPI orxSTATUS orxFASTCALL orxText_Delete(orxTEXT *_pstText)
orxDLLAPI orxTEXT *orxFASTCALL orxText_CreateFromConfig(const orxSTRING _zConfigID)
orxSTATUS
Definition orxType.h:270

Generated for orx by doxygen 1.8.11