libMicrofx/microfx_src/src/gui.c

34 lines
878 B
C

#include "../include/microfx/microfx.h"
/******* GUI *******/
/* Syscalls */
int _InputNumber(unsigned char *heading, int maxlen, int mode);
int _InputString(unsigned char *buffer, unsigned char *heading, int maxlen);
void _DisplayFKeyIcon(int FKeyPos, unsigned char *pBitmap);
void _DisplayMessageBox(int height, unsigned char *message);
void _PopupWin(int nlines);
/* Microfx */
int gnumask(char *message, int maxlen, int type) {
return _InputNumber((unsigned char *)message, maxlen, type);
}
void gstrask(char *buffer, char *message, int maxlen) {
_InputString((unsigned char *)buffer, (unsigned char *)message, maxlen);
}
void gfkeyset(int pos, unsigned char *img) {
_DisplayFKeyIcon(pos, img);
}
void gmessagebox(int height, char *message) {
_DisplayMessageBox(height, (unsigned char*)message);
}
void gpopup(int hlines) {
_PopupWin(hlines);
}