MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
xvfb.h
Go to the documentation of this file.
1 
45 /*
46  * $Id: xvfb.h 7682 2007-09-26 03:27:02Z wangxuguang $
47  *
48  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
49  * pSOS, ThreadX, NuCleus, OSE, and Win32.
50  */
51 
52 #ifndef _MGUI_XVFB_H
53  #define _MGUI_XVFB_H
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif /*__cplusplus*/
58 
70 typedef struct _XVFBHeader {
71 
73  unsigned int info_size;
74 
76  int width;
77 
79  int height;
80 
82  int depth;
83 
89 
92 
95 
98 
101 
103  int pitch;
104 
109  int dirty;
110 
119 
125 
128 
131 } XVFBHeader;
132 
133 
135 typedef struct _XVFBKEYDATA
136 {
138  unsigned short key_code;
139 
145  unsigned short key_state;
146 } XVFBKEYDATA;
147 
149 typedef struct _XVFBMOUSEDATA
150 {
152  unsigned short x;
153 
155  unsigned short y;
156 
162  unsigned short btn;
163 } XVFBMOUSEDATA;
164 
165 
167 typedef struct _XVFBEVENT
168 {
174 
175  union {
180  };
181 } XVFBEVENT;
182 
183 
185 typedef struct _XVFBPalEntry {
187  unsigned char r;
189  unsigned char g;
191  unsigned char b;
193  unsigned char a;
194 } XVFBPalEntry;
195 
196 
201 extern MG_EXPORT XVFBHeader* __mg_rtos_xvfb_header;
202 
210 extern MG_EXPORT void* __mg_rtos_xvfb_event_buffer;
233 MG_EXPORT XVFBHeader* GUIAPI xVFBAllocVirtualFrameBuffer (int width, int height, int depth,
235 
242 MG_EXPORT void GUIAPI xVFBFreeVirtualFrameBuffer (XVFBHeader* buf);
243 
250 MG_EXPORT void* GUIAPI xVFBCreateEventBuffer (int nr_events);
251 
252 
258 MG_EXPORT void GUIAPI xVFBDestroyEventBuffer (void* event_buf);
259 
270 MG_EXPORT int GUIAPI xVFBNotifyNewEvent (const void* xvfb_event_buffer, XVFBEVENT* event);
271 
272 
273 #ifdef __cplusplus
274 }
275 #endif
276 
277 #endif
int BOOL
A type definition for boolean value.
Definition: common.h:294
unsigned short x
Definition: xvfb.h:152
int pitch
Definition: xvfb.h:103
int dirty_rc_b
Definition: xvfb.h:118
int dirty
Definition: xvfb.h:109
struct _XVFBEVENT XVFBEVENT
MG_EXPORT void GUIAPI xVFBDestroyEventBuffer(void *event_buf)
destroy event circular buffer.
XVFBKEYDATA kb_data
Definition: xvfb.h:177
int height
Definition: xvfb.h:79
int dirty_rc_r
Definition: xvfb.h:116
unsigned char b
Definition: xvfb.h:191
unsigned short key_code
Definition: xvfb.h:138
MG_EXPORT XVFBHeader *GUIAPI xVFBAllocVirtualFrameBuffer(int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask, BOOL MSBLeft)
create virtual framebuffer
int event_type
Definition: xvfb.h:173
struct _XVFBMOUSEDATA XVFBMOUSEDATA
unsigned char r
Definition: xvfb.h:187
int width
Definition: xvfb.h:76
unsigned int info_size
Definition: xvfb.h:73
unsigned short btn
Definition: xvfb.h:162
Uint32 Amask
Definition: xvfb.h:100
int palette_changed
Definition: xvfb.h:124
unsigned char Uint8
A type definition for an 8-bit unsigned character.
Definition: common.h:142
struct _XVFBKEYDATA XVFBKEYDATA
unsigned short key_state
Definition: xvfb.h:145
struct _XVFBPalEntry XVFBPalEntry
MG_EXPORT void * __mg_rtos_xvfb_event_buffer
shared memory header of x virtual framebuffer.
XVFBMOUSEDATA mouse_data
Definition: xvfb.h:179
unsigned int Uint32
A type definition for a 32-bit unsigned integer.
Definition: common.h:162
unsigned char g
Definition: xvfb.h:189
int palette_offset
Definition: xvfb.h:127
int depth
Definition: xvfb.h:82
int fb_offset
Definition: xvfb.h:130
Uint8 MSBLeft
Definition: xvfb.h:88
MG_EXPORT int GUIAPI xVFBNotifyNewEvent(const void *xvfb_event_buffer, XVFBEVENT *event)
put a event to event circular buffer
int dirty_rc_t
Definition: xvfb.h:114
MG_EXPORT void GUIAPI xVFBFreeVirtualFrameBuffer(XVFBHeader *buf)
free virtual framebuffer.
Uint32 Gmask
Definition: xvfb.h:94
int dirty_rc_l
Definition: xvfb.h:112
unsigned short y
Definition: xvfb.h:155
Uint32 Rmask
Definition: xvfb.h:91
Uint32 Bmask
Definition: xvfb.h:97
MG_EXPORT void *GUIAPI xVFBCreateEventBuffer(int nr_events)
create event circular buffer.
struct _XVFBHeader XVFBHeader
unsigned char a
Definition: xvfb.h:193