⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 .#common.h.1.13

📁 EGui是一个开源的图形系统软件,类似于QT/Embedded、GTK-FB、MicroWindow。目标是嵌入式平台整合解 决方案。基于Linux Framebuffer 设备驱动上实现。有完
💻 13
字号:
/******************************************************** * Egui code,LGPL * Function : common head file  * Author: asmcos@hotmail.com * Data : 2006-02-21 * $Id: common.h,v 1.14 2006/04/09 23:29:48 hjs Exp $ ********************************************************//************************************ * The file is common ,it is used * by driver and libegui ************************************/#ifndef __COMMON_H__#define __COMMON_H__/* ioctl */#define EGUI_GETINFO      1#define EGUI_PUTINFO      2#define EGUI_GET_FBINFO   21#define EGUI_NEWWINDOW    22#define EGUI_CLOSEWINDOW  23#define EGUI_EVENT        31#define EGUI_REPORT_EVENT 32	/* window width_in,height_in need change */#define EGUI_REPORT_MOVE  33	/* mouse LEFT key press. and window can move *//* end ioctl */#define NAMELEN            32   //window name#define MAXID            0xFF   //windows ID number/* EGui Event type */#define PRESS_KEY              1#define CLICK_LEFT             2#define CLICK_RIGHT            3#define CLICK_MIDDLE           4#define REL_LEFT               5#define REL_RIGHT              6#define REL_MIDDLE             7#define RELEASE_KEY            8/* These are events about window, * they aren't input device events. */#define FOCUS_CHANGED          9 /* window's focus change */#define W_MOVE                 10 /* window's move event */#define W_SIZE_CHANGED         11 /* window's size change */#define CURSOR_MOVE            12 /* only cursor move */#define HIDE_CURSOR            13 /* cursor hide *//*struct  */typedef struct _window_list window_list;typedef struct _EGui_Window EGui_Window;typedef struct _EGui_FBinfo EGui_FBinfo;typedef struct _Ecolor      Ecolor;typedef struct _Efont       Efont;typedef struct _EGui_Event  EGui_Event;typedef struct _EGui_Widget EGui_Widget;typedef struct _EGui_Wfunc  EGui_Wfunc;struct _EGui_Event {  short x;			/* cursor x */  short y;			/* cursor y */  int type;                     /* event type */  int code;			/* key code */  int pid;} ;/*window type*/#define EGUI_WINDOW_ROOT   1#define EGUI_WINDOW_TOP    2#define EGUI_WINDOW_NORMAL 3/* title style,default is 12 pixel */#define TITLE_H       20#define FRAME_W       3struct _EGui_Window {  int	pid;	        	/* program id */  Ecolor  *bgcolor;       /* background color */  short	x, y;                   /* start postition */  short	width, height;          /* windows w ,h  */  short	max_width;              /* visible w */  short	max_height;             /* visible h */  short	id;		        /* windows id */  char 	name [NAMELEN];	        /* windows name */  char	window_type;  short   title_h;              /* title hieght */  short   frame_w;		/* frame width */  unsigned char  *savebuf;	/* save buffer window size */  unsigned char  *saveself;	/* save oneself */  EGui_Window *twindow; /* top window */  EGui_Window *bwindow; /* bottom window */  EGui_FBinfo *fbinfo;  /* follow struct only can use in kernel   * Don't use in use mode.NOTE::   */  window_list *window_list;} ;struct _EGui_FBinfo {  int             dev ;          // fb0,fb1,fb2  int             screen_width;  // 1024  int             screen_height; // 768  int             bpp;           // 16  unsigned char * Egui_phyaddress;  unsigned char * smem_len;  int             p_width;       // 1024 * 2,use by program  int             p_height;      // 768 ,use by program  int             p_bpp;         // 2 ,use by   unsigned char * Egui_address;  //mmap address  char            fbdevfile[8];  int             red_length   ;  int             green_length ;  int             blue_length  ;  int             red_offset  ;  int             green_offset;  int             blue_offset ;  EGui_Window     *ewindow;} ;#endif /* __COMMON_H__ */

⌨️ 快捷键说明

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