2017-01-21 17:27:46 +01:00
|
|
|
// Text.h
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define FONTWHITE 0
|
|
|
|
#define FONTRED 1
|
|
|
|
#define FONTSLIM 2
|
|
|
|
#define FONTLITTLE 10
|
|
|
|
|
|
|
|
extern
|
2017-02-07 19:42:34 +01:00
|
|
|
void DrawText(CPixmap *pPixmap, POINT pos, const char *pText, int font=0);
|
2017-01-21 17:27:46 +01:00
|
|
|
|
|
|
|
extern
|
|
|
|
void DrawTextPente(CPixmap *pPixmap, POINT pos, char *pText,
|
|
|
|
int pente, int font=0);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void DrawTextRect(CPixmap *pPixmap, POINT pos, char *pText,
|
|
|
|
int pente, int font=0, int part=-1);
|
|
|
|
|
|
|
|
extern
|
2017-02-08 23:26:59 +01:00
|
|
|
void DrawTextCenter(CPixmap *pPixmap, POINT pos, const char *pText, int font=0);
|
2017-01-21 17:27:46 +01:00
|
|
|
|
|
|
|
extern
|
|
|
|
int GetTextHeight(char *pText, int font=0, int part=-1);
|
|
|
|
|
|
|
|
extern
|
2017-02-07 19:42:34 +01:00
|
|
|
int GetTextWidth(const char *pText, int font=0);
|
2017-01-21 17:27:46 +01:00
|
|
|
|
|
|
|
extern
|
|
|
|
void DrawBignum(CPixmap *pPixmap, POINT pos, int num);
|
|
|
|
|
|
|
|
extern
|
|
|
|
int GetBignumWidth(int num);
|
|
|
|
|