⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hz.h

📁 nds上的电子书软件
💻 H
字号:
#ifndef _HZ_H_
#define _HZ_H_

/*-----------------------------------------------
load font file into buffer named font_buffer
char *eFontName : English font file name
char *eFontExt : English font file extension
char *cFontName : Chinese font file name
char *cFontExt : Chinese font file extension
bool OUT : return true when loading font OK 
-----------------------------------------------*/
extern bool LoadGbkFontA(char *eFontName, char *eFontExt, char *cFontName, char *cFontExt);
extern bool LoadGbkFontB(char *eFontName, char *eFontExt, char *cFontName, char *cFontExt);
/*-----------------------------------------------
display text with wrap
bool screen : 1 - top screen, 0 - underside screen
u16 x, y : x and y coordinates to start
u16 color : text color
const char * text : output text
int fontsize : font size -- 12, 16 (now)
-----------------------------------------------*/
extern void OutputGbkText(bool screen, u16 x, u16 y, u16 color, const char *text, int fontsize);

/*-----------------------------------------------
display text with wrap
bool screen : 1 - top screen, 0 - underside screen
u16 x, y : x and y coordinates to start
u16 color : text color
const char * text : output text
int fontsize : font size -- 12, 16 (now)
-----------------------------------------------*/
extern void OutputGbkTextV(bool screen, u16 x, u16 y, u16 color, const char *text, int fontsize);

/*-----------------------------------------------
display text in a box
bool screen : 1 - top screen, 0 - underside screen
u16 basex, basey : x and y coordinates of top left corner to box
u16 maxx, maxy : x and y coordinates of bottom right corner to box
u16 color : text color
const char * text : output text
u32 limit : amount of output text you want
int fontsize : font size -- 12, 16 (now)
u32 OUT : return the amount of output text actually 
-----------------------------------------------*/
extern u32 OutputGbkBoxText(bool screen, u16 basex, u16 basey, u16 maxx, u16 maxy, \
	u16 color, const char *text, u32 limit, int fontsize);



/*-----------------------------------------------
display text extension function
bool screen : 1 - top screen, 0 - underside screen
u16 basex, basey : x and y coordinates of top left corner to box
u16 maxx, maxy : x and y coordinates of bottom right corner to box
u16 color : text color
const char * text : output text
u32 limit : amount of output text you want
int fontsize : font size -- 12, 16 (now)
u16 nextlinex : x coordinate of next line when current char is LR('\n')
u32 OUT : return the amount of output text actually 
-----------------------------------------------*/
extern u32 OutputGbkTextExt(bool screen, u16 basex, u16 basey, u16 maxx, u16 maxy, \
	u16 color, const char *text, u32 limit, int fontsize, u16 nextlinex);
	
/*-----------------------------------------------
display text extension function
bool screen : 1 - top screen, 0 - underside screen
u16 basex, basey : x and y coordinates of top left corner to box
u16 maxx, maxy : x and y coordinates of bottom right corner to box
u16 color : text color
const char * text : output text
u32 limit : amount of output text you want
int fontsize : font size -- 12, 16 (now)
u16 nextlinex : x coordinate of next line when current char is LR('\n')
u32 OUT : return the amount of output text actually 
-----------------------------------------------*/
extern u32 OutputGbkTextExtV(bool screen, u16 basex, u16 basey, u16 maxx, u16 maxy, \
	u16 color, const char *text, u32 limit, int fontsize, u16 nextlinex);

extern void SetFontA();
extern void SetFontB();
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -