Download include/X11/extensions/damageproto.h from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 3.62 kB
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/X11/extensions/damageproto.h
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/include/X11/extensions/damageproto.h
-
curl -L -o damageproto.h https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/X11/extensions/damageproto.h
3.62 kB
| /* | |
| * Copyright © 2003 Keith Packard | |
| * Copyright © 2007 Eric Anholt | |
| * | |
| * Permission to use, copy, modify, distribute, and sell this software and its | |
| * documentation for any purpose is hereby granted without fee, provided that | |
| * the above copyright notice appear in all copies and that both that | |
| * copyright notice and this permission notice appear in supporting | |
| * documentation, and that the name of Keith Packard not be used in | |
| * advertising or publicity pertaining to distribution of the software without | |
| * specific, written prior permission. Keith Packard makes no | |
| * representations about the suitability of this software for any purpose. It | |
| * is provided "as is" without express or implied warranty. | |
| * | |
| * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | |
| * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | |
| * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR | |
| * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | |
| * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | |
| * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
| * PERFORMANCE OF THIS SOFTWARE. | |
| */ | |
| /************** Version 0 ******************/ | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| } xDamageReq; | |
| /* | |
| * requests and replies | |
| */ | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| CARD32 majorVersion; | |
| CARD32 minorVersion; | |
| } xDamageQueryVersionReq; | |
| typedef struct { | |
| BYTE type; /* X_Reply */ | |
| BYTE pad1; | |
| CARD16 sequenceNumber; | |
| CARD32 length; | |
| CARD32 majorVersion; | |
| CARD32 minorVersion; | |
| CARD32 pad2; | |
| CARD32 pad3; | |
| CARD32 pad4; | |
| CARD32 pad5; | |
| } xDamageQueryVersionReply; | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| Damage damage; | |
| Drawable drawable; | |
| CARD8 level; | |
| CARD8 pad1; | |
| CARD16 pad2; | |
| } xDamageCreateReq; | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| Damage damage; | |
| } xDamageDestroyReq; | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| Damage damage; | |
| Region repair; | |
| Region parts; | |
| } xDamageSubtractReq; | |
| typedef struct { | |
| CARD8 reqType; | |
| CARD8 damageReqType; | |
| CARD16 length; | |
| Drawable drawable; | |
| Region region; | |
| } xDamageAddReq; | |
| /* Events */ | |
| typedef struct { | |
| CARD8 type; | |
| CARD8 level; | |
| CARD16 sequenceNumber; | |
| Drawable drawable; | |
| Damage damage; | |
| Time timestamp; | |
| xRectangle area; | |
| xRectangle geometry; | |
| } xDamageNotifyEvent; | |