comparison GUIFont.h @ 177:c10509e439f1

Обращённый набор изменений: 05682713195c
author Ritor1
date Fri, 15 Feb 2013 10:39:18 +0600
parents 05682713195c
children 1dfa65be220e
comparison
equal deleted inserted replaced
176:05682713195c 177:c10509e439f1
13 13
14 /* 170 */ 14 /* 170 */
15 #pragma pack(push, 1) 15 #pragma pack(push, 1)
16 struct GUIFont 16 struct GUIFont
17 { 17 {
18 bool IsCharValid(char c); 18
19 //----- (0044C4DE) --------------------------------------------------------
20 bool IsCharValid(char c) { return (c >= cFirstChar) && (c <= cLastChar) || (c == '\f') || (c == '\r') || (c == '\t') || (c == '\n');}
19 int AlignText_Center(unsigned int uCenterX, const char *pString); 21 int AlignText_Center(unsigned int uCenterX, const char *pString);
20 int GetLineWidth(const char *pString); 22 int GetLineWidth(const char *pString);
21 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5); 23 int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int a4, int a5);
22 int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6); 24 int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
23 int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5); 25 int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
24 void _44D0B5(int a2, int a3, int a4, const char *pString, int a6); 26 void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
25 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6); 27 void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
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); 28 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);
27 29
28 static char *__fastcall _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6); 30 static char * _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);
29 31
30 unsigned char cFirstChar; 32 unsigned char cFirstChar;
31 unsigned char cLastChar; 33 unsigned char cLastChar;
32 char field_2; 34 char field_2;
33 char field_3; 35 char field_3;
34 char field_4; 36 char field_4;
35 __int16 uFontHeight; 37 __int16 uFontHeight;
36 char field_7; 38 char field_7;
37 int field_8; 39 int palletes_count;
38 unsigned __int16 *pFontPalettes[5]; 40 unsigned __int16 *pFontPalettes[5];
39 GUICharMetric pMetrics[256]; 41 GUICharMetric pMetrics[256];
40 int field_C20[256]; 42 int field_C20[256];
41 }; 43 };
42 #pragma pack(pop) 44 #pragma pack(pop)
43 45
44 46 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
45 47 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, unsigned int uX, int a5);
46 48
47 49
48 extern struct GUIFont *pAutonoteFont; 50 extern struct GUIFont *pAutonoteFont;
49 extern struct GUIFont *pSpellFont; 51 extern struct GUIFont *pSpellFont;
50 extern struct GUIFont *pFontArrus; 52 extern struct GUIFont *pFontArrus;