2024-05-17 11:47:48 -04:00
|
|
|
// Text.h
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define FONTWHITE 0
|
|
|
|
#define FONTRED 1
|
|
|
|
#define FONTSLIM 2
|
|
|
|
#define FONTLITTLE 10
|
|
|
|
|
2024-06-24 15:46:58 -04:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char charIcon;
|
|
|
|
char charOffsetX;
|
|
|
|
char charOffsetY;
|
|
|
|
char accentIcon;
|
|
|
|
char accentOffsetX;
|
|
|
|
char accentOffsetY;
|
|
|
|
}
|
2024-08-16 21:24:15 -05:00
|
|
|
CharProperties;
|
2024-06-24 15:46:58 -04:00
|
|
|
|
2024-05-17 11:47:48 -04:00
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
void DrawCharSingle(CPixmap *pPixmap, POINT pos, char *pText, int font);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
2024-07-02 11:52:36 -04:00
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
void DrawChar(CPixmap *pPixmap, POINT *pos, char c, int font);
|
2024-07-02 11:52:36 -04:00
|
|
|
|
2024-06-01 20:56:16 -04:00
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
void DrawTextLeft(CPixmap *pPixmap, POINT pos, char *pText, int font);
|
2024-06-01 20:56:16 -04:00
|
|
|
|
|
|
|
extern
|
2024-08-16 21:24:15 -05:00
|
|
|
void DrawText(CPixmap *pPixmap, POINT pos, char *pText, int font = 0);
|
2024-06-04 20:40:05 -04:00
|
|
|
|
2024-05-17 11:47:48 -04:00
|
|
|
extern
|
|
|
|
void DrawTextPente(CPixmap *pPixmap, POINT pos, char *pText,
|
2024-08-06 20:18:18 -05:00
|
|
|
int pente, int font = 0);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
|
|
|
extern
|
|
|
|
void DrawTextRect(CPixmap *pPixmap, POINT pos, char *pText,
|
2024-08-06 20:18:18 -05:00
|
|
|
int pente, int font = 0, int part = -1);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
void DrawTextCenter(CPixmap *pPixmap, POINT pos, char *pText, int font = 0);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
int GetTextHeight(char *pText, int font = 0, int part = -1);
|
2024-05-17 11:47:48 -04:00
|
|
|
|
|
|
|
extern
|
2024-08-06 20:18:18 -05:00
|
|
|
int GetTextWidth(char *pText, int font = 0);
|
2024-05-17 11:47:48 -04:00
|
|
|
|