commlcd.h
来自「mini gui 1.6.8 lib and source」· C头文件 代码 · 共 78 行
H
78 行
/*** $Id: commlcd.h,v 1.11 2005/04/20 07:02:44 weiym Exp $** ** Copyright (C) 2004 Feynman Software.*//*** 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.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/#ifndef _GAL_COMMLCD_H#define _GAL_COMMLCD_H#include "sysvideo.h"#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* Hidden "this" pointer for the video functions */#define _THIS GAL_VideoDevice *this/* Private display data */struct GAL_PrivateVideoData { int w, h, pitch; void *fb;};/* The pixel format defined by depth */#define FB_TYPE_DEFAULT 0#define FB_PSEUDO_RGB332 1#define FB_TRUE_RGB555 2#define FB_TRUE_RGB565 3#define FB_TRUE_RGB888 4#define FB_TRUE_RGB0888 5struct lcd_info { short height, width; // Size of the screen short bpp; // Depth (bits-per-pixel) short type; // Pixel type short rlen; // Length of one scan line in bytes void *fb; // Frame buffer};struct lcd_ops { /* return value: zero for OK */ int (*init) (void); /* return value: zero for OK */ int (*getinfo) (struct lcd_info *li); /* return value: zero for OK */ int (*release) (void); /* return value: number set, zero on error */ int (*setclut) (int firstcolor, int ncolors, GAL_Color *colors);};extern struct lcd_ops __mg_commlcd_ops;#ifdef __cplusplus}#endif /* __cplusplus */#endif /* _GAL_COMMLCD_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?