f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Copyright © 2000 SuSE, Inc.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Permission to use, copy, modify, distribute, and sell this software and its
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * documentation for any purpose is hereby granted without fee, provided that
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * the above copyright notice appear in all copies and that both that
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * copyright notice and this permission notice appear in supporting
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * documentation, and that the name of SuSE not be used in advertising or
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * publicity pertaining to distribution of the software without specific,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * written prior permission. SuSE makes no representations about the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * suitability of this software for any purpose. It is provided "as is"
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * without express or implied warranty.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Author: Keith Packard, SuSE, Inc.
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef struct pixman_vector PictVector, *PictVectorPtr;
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef struct pixman_transform PictTransform, *PictTransformPtr;
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef Bool (*PictFilterValidateParamsProcPtr) (ScreenPtr pScreen, int id,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef struct {
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/* if you add an 8th filter, expand the filter bitfield above */
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef struct {
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef int (*CreatePictureProcPtr) (PicturePtr pPicture);
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*DestroyPictureProcPtr) (PicturePtr pPicture);
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef int (*ChangePictureClipProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*DestroyPictureClipProcPtr)(PicturePtr pPicture);
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef int (*ChangePictureTransformProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef int (*ChangePictureFilterProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*DestroyPictureFilterProcPtr) (PicturePtr pPicture);
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*ChangePictureProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*ValidatePictureProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*RasterizeTrapezoidProcPtr)(PicturePtr pMask,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef Bool (*InitIndexedProcPtr) (ScreenPtr pScreen,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*CloseIndexedProcPtr) (ScreenPtr pScreen,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*UpdateIndexedProcPtr) (ScreenPtr pScreen,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*AddTrapsProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*AddTrianglesProcPtr) (PicturePtr pPicture,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef Bool (*RealizeGlyphProcPtr) (ScreenPtr pScreen,
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*UnrealizeGlyphProcPtr) (ScreenPtr pScreen,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Called immediately after a picture's transform is changed through the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * SetPictureTransform request. Not called for source-only pictures.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync ChangePictureTransformProcPtr ChangePictureTransform;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Called immediately after a picture's transform is changed through the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * SetPictureFilter request. Not called for source-only pictures.
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT DevPrivateKeyRec PictureScreenPrivateKeyRec;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define PictureScreenPrivateKey (&PictureScreenPrivateKeyRec)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT DevPrivateKeyRec PictureWindowPrivateKeyRec;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define PictureWindowPrivateKey (&PictureWindowPrivateKeyRec)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define GetPictureScreen(s) ((PictureScreenPtr)dixLookupPrivate(&(s)->devPrivates, PictureScreenPrivateKey))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define GetPictureScreenIfSet(s) (dixPrivateKeyRegistered(PictureScreenPrivateKey) ? GetPictureScreen(s) : NULL)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define SetPictureScreen(s,p) dixSetPrivate(&(s)->devPrivates, PictureScreenPrivateKey, p)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define GetPictureWindow(w) ((PicturePtr)dixLookupPrivate(&(w)->devPrivates, PictureWindowPrivateKey))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define SetPictureWindow(w,p) dixSetPrivate(&(w)->devPrivates, PictureWindowPrivateKey, p)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define VERIFY_PICTURE(pPicture, pid, client, mode) {\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync int rc = dixLookupResourceByType((pointer)&(pPicture), pid,\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define VERIFY_ALPHA(pPicture, pid, client, mode) {\
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureStoreColors (ColormapPtr pColormap, int ndef, xColorItem *pdef);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureInitIndexedFormat (ScreenPtr pScreen, PictFormatPtr format);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureSetSubpixelOrder (ScreenPtr pScreen, int subpixel);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureMatchVisual (ScreenPtr pScreen, int depth, VisualPtr pVisual);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureMatchFormat (ScreenPtr pScreen, int depth, CARD32 format);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureGetFilterId (char *filter, int len, Bool makeit);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureFindFilter (ScreenPtr pScreen, char *name, int len);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncSetPicturePictFilter (PicturePtr pPicture, PictFilterPtr pFilter,
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncSetPictureFilter (PicturePtr pPicture, char *name, int len,
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncAnimCursorCreate (CursorPtr *cursors, CARD32 *deltas, int ncursor, CursorPtr *ppCursor, ClientPtr client, XID cid);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictTransform_from_xRenderTransform (PictTransformPtr pict,
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncxRenderTransform_from_PictTransform (xRenderTransform *render,
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPictureTransformPoint3d (PictTransformPtr transform,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif /* _PICTURESTR_H_ */