font5x7.h

来自「Yet another mp3 player, but this time us」· C头文件 代码 · 共 37 行

H
37
字号
/*   font5x7.h  A smaller font class for svgalib.  This program is free software; you can redistribute it and/or modify it  under the terms of the GNU General Public License as published by the  Free Software Foundation; either version 2 of the License, or (at your  option) any later version.  This program is distributed in the hope that it will be useful, but  WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General Public License for more details, www.gnu.org.  Copyright (C) 2000  Simon Harrison (email smh@N_O_S_P_A_M@dr.com)*/#ifndef FONT5X7_DOT_H#define FONT5X7_DOT_Hclass font5x7 {    static const unsigned char Fdata[];    unsigned char* fontdata;    font5x7() {};    public:     // first argument is the foreground colour, second background.    font5x7( unsigned char,unsigned char );    ~font5x7() { delete [] fontdata; }     unsigned char* GetData() { return fontdata; }    operator unsigned char *() { return fontdata; }};#endif

⌨️ 快捷键说明

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