annotate GUIFont.h @ 116:dcf80a0a9977

10.02.13
author Ritor1
date Sun, 10 Feb 2013 18:45:41 +0600
parents 9c0607679772
children 91fa025e6ca6
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 171 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct GUICharMetric
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 unsigned int uLeftSpacing;
Ritor1
parents:
diff changeset
9 unsigned int uWidth;
Ritor1
parents:
diff changeset
10 unsigned int uRightSpacing;
Ritor1
parents:
diff changeset
11 };
Ritor1
parents:
diff changeset
12 #pragma pack(pop)
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14 /* 170 */
Ritor1
parents:
diff changeset
15 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
16 struct GUIFont
Ritor1
parents:
diff changeset
17 {
Ritor1
parents:
diff changeset
18 bool IsCharValid(char c);
Ritor1
parents:
diff changeset
19 int AlignText_Center(unsigned int uCenterX, const char *pString);
Ritor1
parents:
diff changeset
20 int GetLineWidth(const char *pString);
Ritor1
parents:
diff changeset
21 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5);
Ritor1
parents:
diff changeset
22 int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
Ritor1
parents:
diff changeset
23 int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
Ritor1
parents:
diff changeset
24 void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
Ritor1
parents:
diff changeset
25 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
Ritor1
parents:
diff changeset
26 void _44D2FD_prolly_draw_credits_entry(GUIFont *pFont, int Str, int a4, unsigned int w, unsigned int h, unsigned __int16 a7, unsigned __int16 a8, const char *pString, unsigned __int16 *pPixels, unsigned int uPixelsWidth);
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28 static char *__fastcall _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30 unsigned char cFirstChar;
Ritor1
parents:
diff changeset
31 unsigned char cLastChar;
Ritor1
parents:
diff changeset
32 char field_2;
Ritor1
parents:
diff changeset
33 char field_3;
Ritor1
parents:
diff changeset
34 char field_4;
Ritor1
parents:
diff changeset
35 __int16 uFontHeight;
Ritor1
parents:
diff changeset
36 char field_7;
Ritor1
parents:
diff changeset
37 int field_8;
Ritor1
parents:
diff changeset
38 unsigned __int16 *pFontPalettes[5];
Ritor1
parents:
diff changeset
39 GUICharMetric pMetrics[256];
Ritor1
parents:
diff changeset
40 int field_C20[256];
Ritor1
parents:
diff changeset
41 };
Ritor1
parents:
diff changeset
42 #pragma pack(pop)
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48 extern struct GUIFont *pAutonoteFont;
Ritor1
parents:
diff changeset
49 extern struct GUIFont *pSpellFont;
Ritor1
parents:
diff changeset
50 extern struct GUIFont *pFontArrus;
Ritor1
parents:
diff changeset
51 extern struct GUIFont *pFontLucida;
Ritor1
parents:
diff changeset
52 extern struct GUIFont *pBook2Font;
Ritor1
parents:
diff changeset
53 extern struct GUIFont *pBookFont;
Ritor1
parents:
diff changeset
54 extern struct GUIFont *pFontCreate;
Ritor1
parents:
diff changeset
55 extern struct GUIFont *pFontCChar;
Ritor1
parents:
diff changeset
56 extern struct GUIFont *pFontComic;
Ritor1
parents:
diff changeset
57 extern struct GUIFont *pFontSmallnum;