view GUIFont.h @ 177:c10509e439f1

Обращённый набор изменений: 05682713195c
author Ritor1
date Fri, 15 Feb 2013 10:39:18 +0600
parents 05682713195c
children 1dfa65be220e
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(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 a4, int a5);
  int GetStringHeight2(GUIFont *a2, const char *Str, int a4, int a5, int a6);
  int _44C6C2(const char *pInString, GUIWindow *pWindow, unsigned int uX, int a5);
  void _44D0B5(int a2, int a3, int a4, const char *pString, int a6);
  void DrawTextLine(unsigned int uDefaultColor, signed int uX, signed int uY, const char *Str, int a6);
  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);

  static char * _44C933(const char *pString, GUIFont *pFont, GUIFont *a3, int a4, int a5, int a6);

  unsigned char cFirstChar;
  unsigned char cLastChar;
  char field_2;
  char field_3;
  char field_4;
  __int16 uFontHeight;
  char field_7;
  int palletes_count;
  unsigned __int16 *pFontPalettes[5];
  GUICharMetric pMetrics[256];
  int field_C20[256];
};
#pragma pack(pop)

GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, unsigned 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;