#include <AGUI2FontManager.h>
Definition at line 5 of file AGUI2FontManager.h.
◆ FindFont()
Definition at line 44 of file AGUI2FontManager.cpp.
45{
47
48 if ( pRef )
49 {
50 pRef->uiNumRefs += 1;
51 return pRef->pFont;
52 }
53
55}
static AGUI2FontRef * FindFontRef(const TCHAR *a_szFontName)
◆ FindFontRef()
Definition at line 57 of file AGUI2FontManager.cpp.
58{
60 {
62 {
64 {
66 }
67 }
68 }
69
71}
static TINT String8CompareNoCase(const TCHAR *str1, const TCHAR *str2, TSIZE size=-1)
static constexpr TUINT MAX_NUM_FONT_REFS
static AGUI2FontRef s_fontrefs[MAX_NUM_FONT_REFS]
◆ FindFontResource()
Definition at line 73 of file AGUI2FontManager.cpp.
74{
76 {
78 {
80 {
82 }
83 }
84 }
85
87}
static AGUI2FontResource s_fontresources[MAX_NUM_LOADED_FONTS]
static constexpr TUINT MAX_NUM_LOADED_FONTS
◆ Open()
TBOOL AGUI2FontManager::Open |
( |
const TCHAR * | a_szFileName | ) |
|
|
static |
Definition at line 12 of file AGUI2FontManager.cpp.
13{
15
16 if ( pResource )
17 {
18 pResource->uiRefCount++;
20 }
21
22 pResource = FindUnusedFontResource();
24
25 if ( !pResource )
26 {
28 }
29
31 {
33 }
34
37
38 pResource->uiRefCount++;
39 CreateFontFromResource( pResource );
40
42}
static TSIZE String8Length(const TCHAR *str)
static TCHAR * String8Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)
static AGUI2FontResource * FindFontResource(const TCHAR *a_szResourceName)
◆ MAX_NUM_FONT_REFS
TUINT AGUI2FontManager::MAX_NUM_FONT_REFS = 16 |
|
staticconstexpr |
◆ MAX_NUM_LOADED_FONTS
TUINT AGUI2FontManager::MAX_NUM_LOADED_FONTS = 1 |
|
staticconstexpr |
◆ s_fontrefs
◆ s_fontresources
The documentation for this class was generated from the following files: