b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * All Rights Reserved.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Permission is hereby granted, free of charge, to any person obtaining
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * a copy of this software and associated documentation files (the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * "Software"), to deal in the Software without restriction, including
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * without limitation on the rights to use, copy, modify, merge,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * and to permit persons to whom the Software is furnished to do so,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * subject to the following conditions:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * The above copyright notice and this permission notice (including the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * next paragraph) shall be included in all copies or substantial
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * portions of the Software.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * SOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Rickard E. (Rik) Faith <faith@redhat.com>
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Kevin E. Martin <kem@redhat.com>
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Interface for DMX extension support. These routines are called by
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * function in Xserver/Xext/dmx.c. \see dmxextension.c */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/** Screen attributes. Used by #ProcDMXGetScreenAttributes and
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * \a ProcDMXChangeScreensAttributes. */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int screenWindowWidth; /* displayName's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int screenWindowHeight; /* displayName's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int screenWindowXoffset; /* displayName's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int screenWindowYoffset; /* displayName's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int rootWindowWidth; /* screenWindow's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int rootWindowHeight; /* screenWindow's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int rootWindowXoffset; /* screenWindow's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int rootWindowYoffset; /* screenWindow's coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int rootWindowXorigin; /* global coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int rootWindowYorigin; /* global coordinate system */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/** Window attributes. Used by #ProcDMXGetWindowAttributes. */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/** Desktop attributes. Used by #ProcDMXGetDesktopAttributes and
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * #ProcDMXChangeDesktopAttributes. */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} DMXDesktopAttributesRec, *DMXDesktopAttributesPtr;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/** Input attributes. Used by #ProcDMXGetInputAttributes. */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern unsigned long dmxGetNumScreens(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void dmxForceWindowCreation(WindowPtr pWindow);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void dmxFlushPendingSyncs(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern Bool dmxGetWindowAttributes(WindowPtr pWindow,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void dmxGetDesktopAttributes(DMXDesktopAttributesPtr attr);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern int dmxGetInputCount(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern int dmxAddInput(DMXInputAttributesPtr attr, int *deviceId);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern int dmxConfigureDesktop(DMXDesktopAttributesPtr attribs);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* dmxUpdateScreenResources exposed for dmxCreateWindow in dmxwindow.c */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void dmxUpdateScreenResources(ScreenPtr pScreen,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int x, int y, int w, int h);