亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? native.h

?? 嵌入式系統圖形用戶界面編程
?? H
字號:
/*** $Id: native.h,v 1.18 2003/11/22 11:49:29 weiym Exp $**** native.h: the head file of native Low Level Graphics Engine.**** Copyright (C) 2003 Feynman Software** Copyright (C) 2001 ~ 2002 Wei Yongming***/#ifndef GUI_GAL_NATIVE_H    #define GUI_GAL_NATIVE_H#include "common.h"#include "minigui.h"#include "gdi.h"#include "window.h"#include "gal.h"#ifdef __cplusplusextern "C" {#endif  /* __cplusplus *//* * Interface to Screen Device Driver * This structure is also allocated for memory (offscreen) drawing and blitting. *//* This structure is used to pass parameters into the low * level device driver functions. */typedef struct _screendevice {    int  doclip;    int  clipminx;        /* minimum x value of cache rectangle */    int  clipminy;        /* minimum y value of cache rectangle */    int  clipmaxx;        /* maximum x value of cache rectangle */    int  clipmaxy;        /* maximum y value of cache rectangle */    int  xres;        /* X screen res (real) */    int  yres;        /* Y screen res (real) */    int  xvirtres;    /* X drawing res (will be flipped in portrait mode) */    int  yvirtres;    /* Y drawing res (will be flipped in portrait mode) */    int  planes;        /* # planes*/    int  bpp;        /* # bits per pixel*/    int  linelen;    /* line length in bytes for bpp 1,2,4,8*/                /* line length in pixels for bpp 16, 24, 32*/    int  size;        /* size of memory allocated*/    gal_pixel gr_foreground;      /* current foreground color */    gal_pixel gr_background;      /* current background color */    int gr_mode;    long ncolors;    /* # screen colors */    int  pixtype;    /* format of pixel value */    int  flags;        /* device flags */    void *addr;        /* address of memory allocated (memdc or fb) */    void *dev_spec;    /* device specific field. */    PSD  (*Open)(PSD psd);    void (*Close)(PSD psd);    void (*SetPalette)(PSD psd,int first,int count,GAL_Color *cmap);    void (*GetPalette)(PSD psd,int first,int count,GAL_Color *cmap);    PSD  (*AllocateMemGC)(PSD psd);    BOOL (*MapMemGC)(PSD mempsd,int w,int h,int planes,int bpp, int linelen,int size,void *addr);    void (*FreeMemGC)(PSD mempsd);    BOOL (*ClipPoint)(PSD psd,int x,int y);    void (*FillRect)(PSD psd,int x,int y,int w,int h,gal_pixel c);    //==================================================================================//    void (*DrawPixel)(PSD psd, int x, int y, gal_pixel c);    gal_pixel (*ReadPixel)(PSD psd, int x, int y);    void (*DrawHLine)(PSD psd, int x, int y, int w, gal_pixel c);    void (*DrawVLine)(PSD psd, int x, int y, int w, gal_pixel c);    void (*Blit)(PSD dstpsd, int dstx, int dsty, int w, int h, PSD srcpsd, int srcx, int srcy);    void (*PutBox)( PSD psd, int x, int y, int w, int h, void* buf );    void (*GetBox)( PSD psd, int x, int y, int w, int h, void* buf );    void (*PutBoxMask)( PSD psd, int x, int y, int w, int h, void *buf, gal_pixel cxx);    void (*CopyBox)(PSD psd,int x1, int y1, int w, int h, int x2, int y2);    void (*UpdateRect) (PSD psd, int l, int t, int r, int b);//===================================================================================//} SCREENDEVICE;#ifdef _NATIVE_GAL_FBCONextern SCREENDEVICE    scrdev;    #endif#ifdef _NATIVE_GAL_QVFBextern SCREENDEVICE    qvfbdev;    #endif#ifdef _NATIVE_GAL_ECOSLCDextern SCREENDEVICE    ecoslcd;    #endifBOOL    InitNative(GFX* gfx);void    TermNative(GFX* gfx);/* genfunc.c*/void native_gen_initmemgc(PSD mempsd,int w,int h,int planes,int bpp,int linelen, int size,void *addr);PSD native_gen_allocatememgc(PSD psd);void native_gen_freememgc(PSD mempsd);void native_gen_fillrect(PSD psd,int x, int y, int w, int h, gal_pixel c);int native_gen_clippoint(PSD psd, int x ,int y);int native_gen_cliphline(PSD psd,int * px,int * py, int * pw);int native_gen_clipvline(PSD psd,int * px,int * py, int *ph);int native_gen_clipline (PSD psd,int * px1,int * py1, int * px2,int *py2);int cs_clipline(PSD psd,int *_x0, int *_y0, int *_x1, int *_y1, int *clip_first, int *clip_last);int native_gen_clipbox(PSD psd,int * px,int * py, int * pw,int *ph);int native_gen_calcmemgcalloc(PSD psd, unsigned int width, unsigned int height, int planes, int bpp, int *psize, int *plinelen);void native_gen_line(PSD psd, int x1, int y1, int x2, int y2, BOOL bDrawLastPoint);void native_gen_rect(PSD psd , int l, int t, int r, int b);void generate_palette(GAL_Color *pal, int num);void native_gen_circle(PSD psd, int sx, int sy, int r, int c);int native_gen_scalebox (PSD psd, int w1, int h1, void *_dp1, int w2, int h2, void *_dp2);/* end of genfunc.c*//* Drawing modes*/#define MODE_SET    0    /* draw pixels as given (default) */#define MODE_XOR    1    /* draw pixels using XOR */#define MODE_OR     2    /* draw pixels using OR (notimp)*/#define MODE_AND    3    /* draw pixels using AND (notimp)*/#define MODE_MAX    3/* Operations for the Blitter/Area functions */#define PSDOP_COPY    0#define PSDOP_COPYALL    1#define PSDOP_COPYTRANS 2#define PSDOP_ALPHAMAP    3#define PSDOP_ALPHACOL    4#define PSDOP_PIXMAP_COPYALL    5/*  * Pixel formats * Note the two pseudo pixel formats are never returned by display drivers, * but rather used as a data structure type in GrArea.  The other * types are both returned by display drivers and used as pixel packing * specifiers. */#define PF_RGB              0    /* pseudo, convert from packed 32 bit RGB */#define PF_gal_pixel        1    /* pseudo, no convert from packed gal_pixel */#define PF_PALETTE          2    /* pixel is packed 8 bits 1, 4 or 8 pal index */#define PF_TRUECOLOR0888    3    /* pixel is packed 32 bits 8/8/8 truecolor */#define PF_TRUECOLOR888     4    /* pixel is packed 24 bits 8/8/8 truecolor */#define PF_TRUECOLOR565     5    /* pixel is packed 16 bits 5/6/5 truecolor */#define PF_TRUECOLOR332     6    /* pixel is packed 8 bits 3/3/2 truecolor *//* Truecolor color conversion and extraction macros *//* * Conversion from RGB to gal_pixel *//* create 24 bit 8/8/8 format pixel (0x00RRGGBB) from RGB triplet*/#define RGB2PIXEL888(r,g,b)    \    (((r) << 16) | ((g) << 8) | (b))/* create 16 bit 5/6/5 format pixel from RGB triplet */#define RGB2PIXEL565(r,g,b)    \    ((((r) & 0xf8) << 8) | (((g) & 0xfc) << 3) | (((b) & 0xf8) >> 3))/* create 15 bit 5/5/5 format pixel from RGB triplet */#define RGB2PIXEL555(r,g,b)    \    ((((r) & 0xf8) << 7) | (((g) & 0xf8) << 2) | (((b) & 0xf8) >> 3))/* create 8 bit 3/3/2 format pixel from RGB triplet*/#define RGB2PIXEL332(r,g,b)    \    (((r) & 0xe0) | (((g) & 0xe0) >> 3) | (((b) & 0xc0) >> 6))/* * Conversion from COLORVAL to gal_pixel *//* create 24 bit 8/8/8 format pixel from RGB colorval (0x00BBGGRR)*/#define COLOR2PIXEL888(c)    \    ((((c) & 0xff) << 16) | ((c) & 0xff00) | (((c) & 0xff0000) >> 16))/* create 16 bit 5/6/5 format pixel from RGB colorval (0x00BBGGRR)*/#define COLOR2PIXEL565(c)    \    ((((c) & 0xf8) << 8) | (((c) & 0xfc00) >> 5) | (((c) & 0xf80000) >> 19))/* create 15 bit 5/5/5 format pixel from RGB colorval (0x00BBGGRR)*/#define COLOR2PIXEL555(c)    \    ((((c) & 0xf8) << 7) | (((c) & 0xf800) >> 6) | (((c) & 0xf80000) >> 19))/* create 8 bit 3/3/2 format pixel from RGB colorval (0x00BBGGRR)*/#define COLOR2PIXEL332(c)    \    (((c) & 0xe0) | (((c) & 0xe000) >> 11) | (((c) & 0xc00000) >> 22))/* * Conversion from gal_pixel to red, green or blue components *//* return 8/8/8 bit r, g or b component of 24 bit gal_pixel*/#define PIXEL888RED(gal_pixel)        (((gal_pixel) >> 16) & 0xff)#define PIXEL888GREEN(gal_pixel)      (((gal_pixel) >> 8) & 0xff)#define PIXEL888BLUE(gal_pixel)       ((gal_pixel) & 0xff)/* return 5/6/5 bit r, g or b component of 16 bit gal_pixel*/#define PIXEL565RED(gal_pixel)        (((gal_pixel) >> 11) & 0x1f)#define PIXEL565GREEN(gal_pixel)      (((gal_pixel) >> 5) & 0x3f)#define PIXEL565BLUE(gal_pixel)       ((gal_pixel) & 0x1f)/* return 5/5/5 bit r, g or b component of 16 bit gal_pixel*/#define PIXEL555RED(gal_pixel)        (((gal_pixel) >> 10) & 0x1f)#define PIXEL555GREEN(gal_pixel)      (((gal_pixel) >> 5) & 0x1f)#define PIXEL555BLUE(gal_pixel)       ((gal_pixel) & 0x1f)/* return 3/3/2 bit r, g or b component of 8 bit gal_pixel*/#define PIXEL332RED(gal_pixel)        (((gal_pixel) >> 5) & 0x07)#define PIXEL332GREEN(gal_pixel)      (((gal_pixel) >> 2) & 0x07)#define PIXEL332BLUE(gal_pixel)       ((gal_pixel) & 0x03)/* PSD flags */#define PSF_SCREEN          0x0001    /* screen device */#define PSF_MEMORY          0x0002    /* memory device */#define PSF_ADDRMALLOC      0x0004    /* psd->addr was malloc'd */#define PSF_ADDRSHAREDMEM   0x0008    /* psd->addr is shared memory */#define PSF_MSBRIGHT        0x0010    /* Most significant bit is right */#define CLIP_VISIBLE        1#define CLIP_INVISIBLE      0#define CLIP_PARTIAL        -1#ifdef __cplusplus}#endif  /* __cplusplus */#endif  /* GUI_GAL_NATIVE_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
最新成人av在线| 亚洲视频一区在线观看| 夜夜嗨av一区二区三区四季av | 欧美va亚洲va在线观看蝴蝶网| 成人免费一区二区三区在线观看| 麻豆精品新av中文字幕| 欧美在线一二三| 国产精品久久久久久久久搜平片| 久久99精品一区二区三区| 欧美日韩在线观看一区二区 | 亚洲小少妇裸体bbw| 懂色av中文一区二区三区| 日韩精品一区二区三区在线观看| 夜夜嗨av一区二区三区中文字幕| eeuss鲁片一区二区三区在线看| 欧美大片顶级少妇| 日韩黄色片在线观看| 欧美三片在线视频观看| 亚洲男人天堂av网| 不卡的电视剧免费网站有什么| 久久久天堂av| 久久激情五月婷婷| 日韩精品一区二区三区在线播放 | 中文字幕在线不卡一区| 国产一区二区久久| 精品国一区二区三区| 免费成人小视频| 欧美美女直播网站| 亚洲国产一区视频| 91久久精品一区二区| 亚洲免费在线看| 一本一道久久a久久精品综合蜜臀| 国产精品成人一区二区三区夜夜夜| 国产成都精品91一区二区三 | 欧美性极品少妇| 亚洲免费三区一区二区| 99精品国产91久久久久久| 国产精品久久网站| va亚洲va日韩不卡在线观看| 中文字幕一区二区三区在线不卡| 不卡在线视频中文字幕| 国产精品免费av| 成人教育av在线| 国产精品成人免费在线| 99精品黄色片免费大全| 亚洲精品日韩综合观看成人91| 91在线观看污| 一区二区久久久久| 欧美日韩久久一区二区| 日本成人在线网站| 日韩欧美国产成人一区二区| 黑人精品欧美一区二区蜜桃| 久久综合九色欧美综合狠狠| 国产精品66部| 国产精品麻豆视频| 日本韩国精品在线| 亚洲成av人片在线| 欧美一区二区网站| 国内欧美视频一区二区| 国产拍揄自揄精品视频麻豆| 91亚洲大成网污www| 一区二区免费看| 日韩一区二区电影| 国产精品一线二线三线精华| 国产精品久久久久永久免费观看| 99精品视频一区二区| 午夜激情久久久| 精品电影一区二区三区| 成人黄页毛片网站| 亚洲综合视频网| 日韩欧美综合一区| 国产伦精品一区二区三区免费 | www国产精品av| 成人激情免费电影网址| 亚洲图片自拍偷拍| 欧美刺激脚交jootjob| 成人午夜视频网站| 亚洲一区二区三区四区中文字幕| 日韩欧美资源站| 成人av资源下载| 偷偷要91色婷婷| 国产丝袜欧美中文另类| 色综合久久久久综合体| 青青草成人在线观看| 国产精品久久久久久久久免费相片 | 日韩影视精彩在线| 国产欧美一区二区精品秋霞影院| 91麻豆国产福利精品| 美女久久久精品| 亚洲人成网站影音先锋播放| 欧美大片免费久久精品三p| 99这里都是精品| 久久精品久久精品| 亚洲欧美视频在线观看| 日韩欧美国产综合一区| 一本久久精品一区二区| 国产在线精品一区二区三区不卡| 亚洲免费观看高清完整版在线观看熊 | 久久国产精品露脸对白| 亚洲精品乱码久久久久久久久| 精品电影一区二区三区| 欧美又粗又大又爽| 国产成+人+日韩+欧美+亚洲| 午夜影院在线观看欧美| 国产精品人妖ts系列视频| 91精品国产黑色紧身裤美女| jlzzjlzz欧美大全| 狠狠色丁香久久婷婷综合丁香| 亚洲国产美女搞黄色| 亚洲国产成人一区二区三区| 日韩欧美国产三级电影视频| 91成人在线免费观看| 成人免费毛片片v| 麻豆一区二区三| 亚洲综合小说图片| 国产精品欧美综合在线| 亚洲精品一区二区三区蜜桃下载| 欧美日韩一区久久| 99re视频精品| 国产电影一区二区三区| 久久丁香综合五月国产三级网站| 亚洲成人综合网站| 亚洲柠檬福利资源导航| 国产女人18水真多18精品一级做| 欧美一区二视频| 欧美日韩国产在线播放网站| 99国产精品国产精品久久| 国产一区二区网址| 蜜桃视频第一区免费观看| 亚洲一级二级在线| 亚洲图片欧美激情| 国产网站一区二区三区| 精品国产99国产精品| 欧美一区二区三区不卡| 欧美日韩在线播放| 欧美在线视频全部完| 一本一道波多野结衣一区二区| 不卡的电影网站| 成人免费视频一区| 国产福利91精品| 国产麻豆成人传媒免费观看| 久久99精品久久久久久| 免费一级片91| 日韩高清中文字幕一区| 亚洲chinese男男1069| 亚洲国产aⅴ天堂久久| 一区二区三区四区激情| 亚洲精品国产a| 亚洲精品免费播放| 一区二区成人在线| 夜夜揉揉日日人人青青一国产精品| 亚洲品质自拍视频网站| 亚洲精选视频免费看| 亚洲麻豆国产自偷在线| 亚洲精品免费看| 亚洲一区二区三区自拍| 亚洲成av人片在www色猫咪| 亚洲二区在线观看| 五月婷婷欧美视频| 日韩精品免费专区| 日本不卡的三区四区五区| 美日韩一区二区| 国产在线精品不卡| 成人丝袜18视频在线观看| 成人看片黄a免费看在线| caoporen国产精品视频| 一本色道久久综合狠狠躁的推荐| 色婷婷久久综合| 欧美精品在线观看播放| 欧美一区二区精美| 日韩一区二区三区免费看| 精品久久久久久久久久久久久久久 | 欧美日韩日日摸| 日韩欧美综合一区| 国产日产欧美一区| 中文字幕一区二区三区视频 | 国产欧美一区二区三区鸳鸯浴| 中国色在线观看另类| 亚洲欧美日韩一区二区三区在线观看| 一区二区欧美在线观看| 美女网站色91| 国产·精品毛片| 91国产精品成人| 欧美一级一区二区| 国产日韩av一区| 一区二区三区四区不卡视频 | 亚洲欧美日韩国产综合在线| 亚洲高清久久久| 狠狠色狠狠色综合| 91在线高清观看| 91精选在线观看| 国产无人区一区二区三区| 亚洲激情六月丁香| 免费高清视频精品| 东方aⅴ免费观看久久av| 欧美在线看片a免费观看| 精品国产污污免费网站入口| 亚洲欧洲成人精品av97| 天天影视色香欲综合网老头| 国产伦精品一区二区三区免费迷|