Mercurial > mm7
view GUIFont.h @ 1193:ca65b398c320
m
author | Ritor1 |
---|---|
date | Fri, 07 Jun 2013 13:43:24 +0600 |
parents | 8b3e7d5ba069 |
children | 7e5e328454c7 |
line wrap: on
line source
#pragma once /* 171 */ #pragma pack(push, 1) struct GUICharMetric { unsigned int uLeftSpacing; unsigned int uWidth; unsigned int uRightSpacing; }; #pragma pack(pop) /* 170 */ #pragma pack(push, 1) struct GUIFont { //----- (0044C4DE) -------------------------------------------------------- bool IsCharValid(unsigned char c) { return (c >= cFirstChar) && (c <= cLastChar) || (c == '\f') || (c == '\r') || (c == '\t') || (c == '\n');} int AlignText_Center(unsigned int uCenterX, const char *pString); int GetLineWidth(const char *pString); int CalcTextHeight(const char *pString, struct GUIWindow *pWindow, int uXOffset, int a5); int GetStringHeight2(GUIFont *secondFont, const char *text_str, GUIWindow* pWindow, int startX, int a6); char* _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5); void DrawTextLineToBuff(int uColor, int a3, unsigned short* uX_buff_pos, const char *text, int line_width); void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *text, int max_len_pix); void _44D2FD_prolly_draw_credits_entry(GUIFont *pSecondFont, int uFrameX, int uFrameY, unsigned int w, unsigned int h, unsigned __int16 firstColor, unsigned __int16 secondColor, const char *pString, unsigned __int16 *pPixels, unsigned int uPixelsWidth); static char * FitTwoFontStringINWindow(const char *pString, GUIFont *pFontMain, GUIFont *pFontSecond, GUIWindow* pWindow, int startPixlOff, int a6); unsigned char cFirstChar; //0 unsigned char cLastChar; //1 char field_2; char field_3; char field_4; __int16 uFontHeight; //5-6 char field_7; int palletes_count; unsigned __int16 *pFontPalettes[5]; GUICharMetric pMetrics[256]; int font_pixels_offset[256]; unsigned char pFontData[0]; //array of font pixels }; #pragma pack(pop) GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...); char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, signed int uX, int a5); extern struct GUIFont *pAutonoteFont; extern struct GUIFont *pSpellFont; extern struct GUIFont *pFontArrus; extern struct GUIFont *pFontLucida; extern struct GUIFont *pBook2Font; extern struct GUIFont *pBookFont; extern struct GUIFont *pFontCreate; extern struct GUIFont *pFontCChar; extern struct GUIFont *pFontComic; extern struct GUIFont *pFontSmallnum;