diff options
author | jim <empty> | 1989-10-04 16:11:44 +0000 |
---|---|---|
committer | jim <empty> | 1989-10-04 16:11:44 +0000 |
commit | 2f3372cd26ed96845cc41501d6f664b5d78b3eb6 (patch) | |
tree | ced590cf623844f28ee533a1db072d0c63eea025 /xc/include | |
parent | d4bc730fdb9a33a4d40ec1019864e9441d04b06c (diff) |
added ClearBuffer
Diffstat (limited to 'xc/include')
-rw-r--r-- | xc/include/extensions/multibuf.h | 19 | ||||
-rw-r--r-- | xc/include/extensions/multibufst.h | 32 |
2 files changed, 47 insertions, 4 deletions
diff --git a/xc/include/extensions/multibuf.h b/xc/include/extensions/multibuf.h index 92a0c86ff..2c1f8c2eb 100644 --- a/xc/include/extensions/multibuf.h +++ b/xc/include/extensions/multibuf.h @@ -1,5 +1,5 @@ /* - * $XConsortium: multibuf.h,v 1.6 89/10/03 17:58:08 jim Exp $ + * $XConsortium: multibuf.h,v 1.7 89/10/04 15:45:53 jim Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -39,6 +39,7 @@ #define X_MbufGetBufferAttributes 7 #define X_MbufGetBufferInfo 8 #define X_MbufCreateStereoWindow 9 +#define X_MbufClearBuffer 10 /* * update_action field @@ -263,6 +264,21 @@ void XmbufChangeBufferAttributes (dpy, buffer, valuemask, attributes) limited to the event_mask. +void XmbufClearBuffer (dpy, buffer, x, y, width, height, exposures) + Display *dpy; + Multibuffer buffer; + int x, y; + unsigned int width, height; + Bool exposures; + + Paints the specified rectangle of the buffer with the corresponding + area from the background (if not-None) of the window associated with + the buffer. If width is zero, it is replaced by the width of the + buffer minus x. If height is zero, it is replaced by the height of + the buffer minus y. If exposures is True, an exposure event is + generated for the rectangle. + + Status XmbufGetScreenInfo (dpy, drawable, nmono_return, mono_info_return, nstereo, stereo_info_return) Display *dpy; @@ -316,6 +332,7 @@ extern Status XmbufGetWindowAttributes (); /* get extension window attrs */ extern void XmbufChangeWindowAttributes (); /* set extension window attrs */ extern Status XmbufGetBufferAttributes (); /* get buffer attrs */ extern void XmbufChangeBufferAttributes (); /* set buffer attrs */ +extern void XmbufClearBuffer (); /* clear buffer to background */ extern Status XmbufGetScreenInfo (); /* get mono and stereo parameters */ extern Window XmbufCreateStereoWindow ();/* stereo version of XCreateWindow */ diff --git a/xc/include/extensions/multibufst.h b/xc/include/extensions/multibufst.h index f070e7058..16e705123 100644 --- a/xc/include/extensions/multibufst.h +++ b/xc/include/extensions/multibufst.h @@ -1,5 +1,5 @@ /* - * $XConsortium: multibufst.h,v 1.3 89/10/03 17:22:45 jim Exp $ + * $XConsortium: multibufst.h,v 1.4 89/10/04 15:45:50 jim Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -23,6 +23,9 @@ * Author: Keith Packard, MIT X Consortium */ +#ifndef _MULTIBUFST_H_ +#define _MULTIBUFST_H_ + /* * Protocol requests constants and alignment values * These would really be in Multi-Buffering's X.h and Xproto.h equivalents @@ -40,6 +43,8 @@ req->mbufReqType = X_/**/name; #endif +#define Multibuffer CARD32 + typedef struct { CARD32 visualID B32; /* associated visual */ CARD16 maxBuffers B16; /* maximum supported buffers */ @@ -245,8 +250,8 @@ typedef struct { CARD8 depth; Window wid B32; Window parent B32; - CARD32 left B32; /* associated buffers */ - CARD32 right B32; + Multibuffer left B32; /* associated buffers */ + Multibuffer right B32; INT16 x B16; INT16 y B16; CARD16 width B16; @@ -257,3 +262,24 @@ typedef struct { CARD32 mask B32; } xMbufCreateStereoWindowReq; /* followed by value list */ #define sz_xMbufCreateStereoWindowReq 44 + + +typedef struct { + CARD8 reqType; /* always codes->major_opcode */ + CARD8 mbufReqType; /* always X_MbufClearBuffer */ + CARD16 length B16; + Multibuffer buffer B32; + INT16 x B16; + INT16 y B16; + CARD16 width B16; + CARD16 height B16; + CARD8 exposures; + CARD8 unused0; + CARD8 unused1; + CARD8 unused2; +} xMbufClearBufferReq; +#define sz_xMbufClearBufferReq 20 + +#undef Multibuffer + +#endif /* _MULTIBUFST_H_ */ |