annotate GUIFont.h @ 198:03d52010d433

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