1
0
mirror of https://github.com/jummy0/sb2-decomp synced 2025-03-19 14:19:38 +01:00
sb2-decomp/text.h

62 lines
1.3 KiB
C
Raw Normal View History

// 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;
}
CharOffset;
extern
2024-06-18 19:29:38 -04:00
void DrawText(CPixmap *pPixmap, POINT pos, char *pText, int font);
2024-07-02 11:52:36 -04:00
extern
void DrawTextLeft(CPixmap* pPixmap, POINT pos, char *text, int font);
2024-06-01 20:56:16 -04:00
extern
2024-06-18 19:29:38 -04:00
void DrawTextNew(CPixmap *pPixmap, POINT pos, char* pText, int font);
2024-06-01 20:56:16 -04:00
extern
2024-06-18 19:29:38 -04:00
void DrawChar(CPixmap* pPixmap, POINT pos, char* pText, double size);
extern
void DrawCharSingle(CPixmap* pPixmap, POINT pos, int rank, double size);
2024-06-01 20:56:16 -04:00
2024-06-04 20:40:05 -04:00
extern
void DrawTextNew(CPixmap* pPixmap, POINT pos, char* pText, int font);
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
void DrawTextCenter(CPixmap *pPixmap, POINT pos, char *pText, int font=0);
extern
int GetTextHeight(char *pText, int font=0, int part=-1);
extern
int GetTextWidth(char *pText, int font=0);
extern
void DrawBignum(CPixmap *pPixmap, POINT pos, int num);
extern
int GetBignumWidth(int num);