331c327f500d45223e8ad933fd4472740a75aeeachad.kienle/*
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * Rootless window management
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle */
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle/*
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * Copyright (c) 2001 Greg Parker. All Rights Reserved.
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle *
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * Permission is hereby granted, free of charge, to any person obtaining a
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * copy of this software and associated documentation files (the "Software"),
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * to deal in the Software without restriction, including without limitation
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * the rights to use, copy, modify, merge, publish, distribute, sublicense,
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * and/or sell copies of the Software, and to permit persons to whom the
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * Software is furnished to do so, subject to the following conditions:
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle *
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * The above copyright notice and this permission notice shall be included in
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * all copies or substantial portions of the Software.
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle *
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * DEALINGS IN THE SOFTWARE.
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle *
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * Except as contained in this notice, the name(s) of the above copyright
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * holders shall not be used in advertising or otherwise to promote the sale,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle * use or other dealings in this Software without prior written authorization.
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle */
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle/* $XFree86: xc/programs/Xserver/miext/rootless/rootlessWindow.h,v 1.1 2003/04/15 01:05:44 torrey Exp $ */
331c327f500d45223e8ad933fd4472740a75aeeachad.kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#ifdef HAVE_DIX_CONFIG_H
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#include <dix-config.h>
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#endif
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#ifndef _ROOTLESSWINDOW_H
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#define _ROOTLESSWINDOW_H
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#include "rootlessCommon.h"
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessCreateWindow(WindowPtr pWin);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessDestroyWindow(WindowPtr pWin);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#ifdef SHAPE
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessSetShape(WindowPtr pWin);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#endif // SHAPE
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessPositionWindow(WindowPtr pWin, int x, int y);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessRealizeWindow(WindowPtr pWin);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleBool RootlessUnrealizeWindow(WindowPtr pWin);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessCopyWindow(WindowPtr pWin,DDXPointRec ptOldOrg,RegionPtr prgnSrc);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessMoveWindow(WindowPtr pWin,int x,int y,WindowPtr pSib,VTKind kind);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessResizeWindow(WindowPtr pWin, int x, int y,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle unsigned int w, unsigned int h, WindowPtr pSib);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessReparentWindow(WindowPtr pWin, WindowPtr pPriorParent);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle int what);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion,
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle int what);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienlevoid RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width);
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle#endif
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle