shadow.h
来自「mini gui 1.6.8 lib and source」· C头文件 代码 · 共 76 行
H
76 行
/*** $Id: shadow.h,v 1.5 2005/04/20 11:03:51 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_SHADOW_H#define _GAL_SHADOW_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; BOOL alloc_fb; BOOL dirty; RECT update; pthread_t update_th; pthread_mutex_t update_lock;};struct lcd_info { short height, width; // Pixels short bpp; // Depth (bits/pixel) short type; // pixel type short rlen; // Length of one raster line in bytes void *fb; // Frame buffer};struct shadow_lcd_ops { /* Return value: Zero on ok */ int (*init) (void); /* Return value: Zero on ok. */ int (*getinfo) (struct lcd_info* lcd_info); /* Nullable, Should be set when getinfo is no NULL. Return value: Zero on ok */ int (*release) (void); /* Nullable. Return value: The number of colors set, zeor on error. */ int (*setclut) (int firstcolor, int ncolors, GAL_Color *colors); void (*sleep) (void); void (*refresh) (_THIS, const RECT* update);};extern struct shadow_lcd_ops __mg_shadow_lcd_ops;#ifdef __cplusplus}#endif /* __cplusplus */#endif /* _GAL_SHADOW_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?