xenocara/xserver/xfixes/xfixesint.h

301 lines
7.0 KiB
C
Raw Permalink Normal View History

2006-11-26 11:13:41 -07:00
/*
2011-11-05 07:32:40 -06:00
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright 2010 Red Hat, Inc.
2006-11-26 11:13:41 -07:00
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
2006-11-26 11:13:41 -07:00
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
2006-11-26 11:13:41 -07:00
*
* Copyright © 2002 Keith Packard
*
* 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.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _XFIXESINT_H_
#define _XFIXESINT_H_
#include <X11/X.h>
#include <X11/Xproto.h>
#include "misc.h"
#include "os.h"
#include "dixstruct.h"
#include "extnsionst.h"
#include <X11/extensions/xfixesproto.h>
#include "windowstr.h"
#include "selection.h"
#include "xfixes.h"
extern int XFixesEventBase;
2006-11-26 11:13:41 -07:00
typedef struct _XFixesClient {
CARD32 major_version;
CARD32 minor_version;
2006-11-26 11:13:41 -07:00
} XFixesClientRec, *XFixesClientPtr;
#define GetXFixesClient(pClient) ((XFixesClientPtr)dixLookupPrivate(&(pClient)->devPrivates, XFixesClientPrivateKey))
2006-11-26 11:13:41 -07:00
extern int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr);
2006-11-26 11:13:41 -07:00
/* Save set */
int
ProcXFixesChangeSaveSet(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesChangeSaveSet(ClientPtr client);
2006-11-26 11:13:41 -07:00
/* Selection events */
int
ProcXFixesSelectSelectionInput(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSelectSelectionInput(ClientPtr client);
2006-11-26 11:13:41 -07:00
void
SXFixesSelectionNotifyEvent(xXFixesSelectionNotifyEvent * from,
xXFixesSelectionNotifyEvent * to);
2006-11-26 11:13:41 -07:00
Bool
XFixesSelectionInit(void);
2006-11-26 11:13:41 -07:00
/* Cursor notification */
Bool
XFixesCursorInit(void);
2006-11-26 11:13:41 -07:00
int
ProcXFixesSelectCursorInput(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSelectCursorInput(ClientPtr client);
2006-11-26 11:13:41 -07:00
void
SXFixesCursorNotifyEvent(xXFixesCursorNotifyEvent * from,
xXFixesCursorNotifyEvent * to);
2006-11-26 11:13:41 -07:00
int
ProcXFixesGetCursorImage(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesGetCursorImage(ClientPtr client);
2006-11-26 11:13:41 -07:00
/* Cursor names (Version 2) */
int
ProcXFixesSetCursorName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSetCursorName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesGetCursorName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesGetCursorName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesGetCursorImageAndName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesGetCursorImageAndName(ClientPtr client);
2006-11-26 11:13:41 -07:00
/* Cursor replacement (Version 2) */
int
ProcXFixesChangeCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesChangeCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesChangeCursorByName(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesChangeCursorByName(ClientPtr client);
2006-11-26 11:13:41 -07:00
/* Region objects (Version 2* */
Bool
XFixesRegionInit(void);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCreateRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCreateRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCreateRegionFromBitmap(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCreateRegionFromBitmap(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCreateRegionFromWindow(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCreateRegionFromWindow(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCreateRegionFromGC(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCreateRegionFromGC(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCreateRegionFromPicture(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCreateRegionFromPicture(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesDestroyRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesDestroyRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesSetRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSetRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCopyRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCopyRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesCombineRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesCombineRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesInvertRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesInvertRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesTranslateRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesTranslateRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesRegionExtents(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesRegionExtents(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesFetchRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesFetchRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesSetGCClipRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSetGCClipRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesSetWindowShapeRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSetWindowShapeRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesSetPictureClipRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesSetPictureClipRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesExpandRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesExpandRegion(ClientPtr client);
2006-11-26 11:13:41 -07:00
2011-11-05 07:32:40 -06:00
int
PanoramiXFixesSetGCClipRegion(ClientPtr client);
2011-11-05 07:32:40 -06:00
int
PanoramiXFixesSetWindowShapeRegion(ClientPtr client);
2011-11-05 07:32:40 -06:00
int
PanoramiXFixesSetPictureClipRegion(ClientPtr client);
2011-11-05 07:32:40 -06:00
2006-11-26 11:13:41 -07:00
/* Cursor Visibility (Version 4) */
int
ProcXFixesHideCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesHideCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
ProcXFixesShowCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
int
SProcXFixesShowCursor(ClientPtr client);
2006-11-26 11:13:41 -07:00
2011-11-05 07:32:40 -06:00
/* Version 5 */
int
ProcXFixesCreatePointerBarrier(ClientPtr client);
2011-11-05 07:32:40 -06:00
int
SProcXFixesCreatePointerBarrier(ClientPtr client);
2011-11-05 07:32:40 -06:00
int
ProcXFixesDestroyPointerBarrier(ClientPtr client);
2011-11-05 07:32:40 -06:00
int
SProcXFixesDestroyPointerBarrier(ClientPtr client);
2011-11-05 07:32:40 -06:00
/* Xinerama */
#ifdef PANORAMIX
extern int (*PanoramiXSaveXFixesVector[XFixesNumberRequests]) (ClientPtr);
void PanoramiXFixesInit(void);
void PanoramiXFixesReset(void);
#endif
2011-11-05 07:32:40 -06:00
#endif /* _XFIXESINT_H_ */