From 1f876171067c04fc21fccd5a3051f982fd85c0f0 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 21 Oct 2009 19:07:36 +0000 Subject: Updated to xorg-server-1.7.99.1 --- xorg-server/hw/dmx/doc/html/dmxwindow_8c.html | 1314 ++++++++++++------------- 1 file changed, 657 insertions(+), 657 deletions(-) (limited to 'xorg-server/hw/dmx/doc/html/dmxwindow_8c.html') diff --git a/xorg-server/hw/dmx/doc/html/dmxwindow_8c.html b/xorg-server/hw/dmx/doc/html/dmxwindow_8c.html index ef3509d3c..968515b1e 100644 --- a/xorg-server/hw/dmx/doc/html/dmxwindow_8c.html +++ b/xorg-server/hw/dmx/doc/html/dmxwindow_8c.html @@ -6,851 +6,851 @@ - -
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals
-

dmxwindow.c File Reference

#include "dmx.h"
-#include "dmxsync.h"
-#include "dmxwindow.h"
-#include "dmxpixmap.h"
-#include "dmxcmap.h"
-#include "dmxvisual.h"
-#include "dmxinput.h"
-#include "dmxextension.h"
-#include "dmxpict.h"
-#include "windowstr.h"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
+

dmxwindow.c File Reference

#include "dmx.h"
+#include "dmxsync.h"
+#include "dmxwindow.h"
+#include "dmxpixmap.h"
+#include "dmxcmap.h"
+#include "dmxvisual.h"
+#include "dmxinput.h"
+#include "dmxextension.h"
+#include "dmxpict.h"
+#include "windowstr.h"
+

Functions

Bool dmxInitWindow (ScreenPtr pScreen)
void dmxResizeScreenWindow (ScreenPtr pScreen, int x, int y, int w, int h)
void dmxResizeRootWindow (WindowPtr pRoot, int x, int y, int w, int h)
void dmxCreateAndRealizeWindow (WindowPtr pWindow, Bool doSync)
Bool dmxCreateWindow (WindowPtr pWindow)
Bool dmxBEDestroyWindow (WindowPtr pWindow)
Bool dmxDestroyWindow (WindowPtr pWindow)
Bool dmxPositionWindow (WindowPtr pWindow, int x, int y)
Bool dmxChangeWindowAttributes (WindowPtr pWindow, unsigned long mask)
Bool dmxRealizeWindow (WindowPtr pWindow)
Bool dmxUnrealizeWindow (WindowPtr pWindow)
void dmxRestackWindow (WindowPtr pWindow, WindowPtr pOldNextSib)
void dmxWindowExposures (WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
void dmxPaintWindowBackground (WindowPtr pWindow, RegionPtr pRegion, int what)
void dmxPaintWindowBorder (WindowPtr pWindow, RegionPtr pRegion, int what)
void dmxCopyWindow (WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
void dmxResizeWindow (WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
void dmxReparentWindow (WindowPtr pWindow, WindowPtr pPriorParent)
void dmxChangeBorderWidth (WindowPtr pWindow, unsigned int width)
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

static void dmxDoRestackWindow (WindowPtr pWindow)
static void dmxDoChangeWindowAttributes (WindowPtr pWindow, unsigned long *mask, XSetWindowAttributes *attribs)
static void dmxDoSetShape (WindowPtr pWindow)
Bool dmxInitWindow (ScreenPtr pScreen)
Window dmxCreateRootWindow (WindowPtr pWindow)
void dmxResizeScreenWindow (ScreenPtr pScreen, int x, int y, int w, int h)
void dmxResizeRootWindow (WindowPtr pRoot, int x, int y, int w, int h)
void dmxGetDefaultWindowAttributes (WindowPtr pWindow, Colormap *cmap, Visual **visual)
static Window dmxCreateNonRootWindow (WindowPtr pWindow)
void dmxCreateAndRealizeWindow (WindowPtr pWindow, Bool doSync)
Bool dmxCreateWindow (WindowPtr pWindow)
Bool dmxBEDestroyWindow (WindowPtr pWindow)
Bool dmxDestroyWindow (WindowPtr pWindow)
Bool dmxPositionWindow (WindowPtr pWindow, int x, int y)
Bool dmxChangeWindowAttributes (WindowPtr pWindow, unsigned long mask)
Bool dmxRealizeWindow (WindowPtr pWindow)
Bool dmxUnrealizeWindow (WindowPtr pWindow)
void dmxRestackWindow (WindowPtr pWindow, WindowPtr pOldNextSib)
static Bool dmxWindowExposurePredicate (Display *dpy, XEvent *ev, XPointer ptr)
void dmxWindowExposures (WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
void dmxCopyWindow (WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
void dmxResizeWindow (WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
void dmxReparentWindow (WindowPtr pWindow, WindowPtr pPriorParent)
void dmxChangeBorderWidth (WindowPtr pWindow, unsigned int width)
void dmxSetShape (WindowPtr pWindow)
+

Detailed Description

+

This file provides support for window-related functions.

+

Function Documentation

+ +
+
+ + + + + + + + + +
Bool dmxBEDestroyWindow (WindowPtr  pWindow ) 
+
+
+

Destroy pWindow on the back-end server.

-void dmxSetShape (WindowPtr pWindow) +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxScreens, and _dmxWinPriv::window.

- -

Detailed Description

-This file provides support for window-related functions.

Function Documentation

-

- - - - -
- - - - - - - - - +

Referenced by dmxBEDestroyWindowTree(), and dmxDestroyWindow().

-
Bool dmxBEDestroyWindow WindowPtr  pWindow  ) 
-
- - - - - -
-   - - -

-Destroy pWindow on the back-end server.

-

- - - - -
- + + + +
+
+
- - - - + + + + + - - - + + - - + + -
void dmxChangeBorderWidth WindowPtr  pWindow, void dmxChangeBorderWidth (WindowPtr  pWindow,
unsigned int  widthunsigned int  width 
)
-
- - - - - -
-   - - -

-Change border width for pWindow to width pixels.

-

- - - - -
- + +
+

Change border width for pWindow to width pixels.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxChangeBorderWidth(), dmxScreens, dmxSync(), and _dmxWinPriv::window.

+ +

Referenced by dmxChangeBorderWidth(), and dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + - - + + -
Bool dmxChangeWindowAttributes WindowPtr  pWindow, Bool dmxChangeWindowAttributes (WindowPtr  pWindow,
unsigned long  maskunsigned long  mask 
)
-
- - - - - -
-   - - -

-Change the window attributes of pWindow.

-

- - - - -
- + + + + +
+
+
- - - - + + + + + - - - + + + - - - + + - - + + -
void dmxCopyWindow WindowPtr  pWindow, void dmxCopyWindow (WindowPtr  pWindow,
DDXPointRec  ptOldOrg, DDXPointRec  ptOldOrg,
RegionPtr  prgnSrcRegionPtr  prgnSrc 
)
-
- - - - - -
-   - - -

-Move pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

-

- - - - -
- + +
+

Move pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_COPY, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCopyWindow(), dmxCreateAndRealizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

+ +

Referenced by dmxCopyWindow(), and dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + - - + + -
void dmxCreateAndRealizeWindow WindowPtr  pWindow, void dmxCreateAndRealizeWindow (WindowPtr  pWindow,
Bool  doSyncBool  doSync 
)
-
- - - - - -
-   - - -

-This function handles lazy window creation and realization. Window creation is handled by dmxCreateNonRootWindow(). It also handles any stacking changes that have occured since the window was originally created by calling dmxDoRestackWindow(). If the window is shaped, the shape is set on the back-end server by calling dmxDoSetShape(), and if the window has pictures (from RENDER) associated with it, those pictures are created on the back-end server by calling dmxCreatePictureList(). If doSync is TRUE, then dmxSync() is called.

-

- - - - -
- + +
+

This function handles lazy window creation and realization. Window creation is handled by dmxCreateNonRootWindow(). It also handles any stacking changes that have occured since the window was originally created by calling dmxDoRestackWindow(). If the window is shaped, the shape is set on the back-end server by calling dmxDoSetShape(), and if the window has pictures (from RENDER) associated with it, those pictures are created on the back-end server by calling dmxCreatePictureList(). If doSync is TRUE, then dmxSync() is called.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxCreateNonRootWindow(), dmxCreatePictureList(), dmxDoRestackWindow(), dmxDoSetShape(), dmxScreens, dmxSync(), _dmxWinPriv::hasPict, _dmxWinPriv::isShaped, _dmxWinPriv::mapped, _dmxWinPriv::restacked, and _dmxWinPriv::window.

+ +

Referenced by dmxBECreateWindowTree(), dmxCopyWindow(), dmxCreateNonRootWindow(), dmxForceWindowCreation(), dmxPositionWindow(), dmxRealizeWindow(), dmxReparentWindow(), and dmxResizeWindow().

+ +
+ + +
+
+
- - - - - - + + + + + + -
Bool dmxCreateWindow WindowPtr  pWindow  ) static Window dmxCreateNonRootWindow (WindowPtr  pWindow )  [static]
-
- - - - - -
-   - - -

-Create pWindow on the back-end server. If the lazy window creation optimization is enabled, then the actual creation and realization of the window is handled by dmxCreateAndRealizeWindow().

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + -
Bool dmxDestroyWindow WindowPtr  pWindow  ) Window dmxCreateRootWindow (WindowPtr  pWindow ) 
-
- - - - - -
-   - - -

-Destroy pWindow on the back-end server. If any RENDER pictures were created, destroy them as well.

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + +
Bool dmxInitWindow ScreenPtr  pScreen  ) Bool dmxCreateWindow (WindowPtr  pWindow ) 
+ + + + +
+
+ + + + + + + + +
Bool dmxDestroyWindow (WindowPtr  pWindow ) 
-
- - - - - -
-   - - -

-Initialize the private area for the window functions.

-

- - - - -
- + +
+

Destroy pWindow on the back-end server. If any RENDER pictures were created, destroy them as well.

+ +

References DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxBEDestroyWindow(), dmxDestroyPictureList(), dmxDestroyWindow(), dmxScreens, and dmxSync().

+ +

Referenced by dmxDestroyWindow(), and dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + + - - - + + - - + + +
void dmxPaintWindowBackground WindowPtr  pWindow, static void dmxDoChangeWindowAttributes (WindowPtr  pWindow,
RegionPtr  pRegion, unsigned long *  mask,
int  whatXSetWindowAttributes *  attribs 
) [static]
+ + + + +
+
+ + + + + + + + +
static void dmxDoRestackWindow (WindowPtr  pWindow )  [static]
-
- - - - - -
-   - - -

-Paint background of pWindow in pRegion.

-

- - - - -
- + + + + +
+
+
+ + + + + + + + +
static void dmxDoSetShape (WindowPtr  pWindow )  [static]
+ + + + +
+
+ - - - - + + + + + - - - + + + - - - + + - - + + +
void dmxPaintWindowBorder WindowPtr  pWindow, void dmxGetDefaultWindowAttributes (WindowPtr  pWindow,
RegionPtr  pRegion, Colormap *  cmap,
int  whatVisual **  visual 
)
+
+ +
+ +
+
+ + + + + + + + +
Bool dmxInitWindow (ScreenPtr  pScreen ) 
-
- - - - - -
-   - - -

-Paint window border for pWindow in pRegion.

-

- - - - -
- + +
+

Initialize the private area for the window functions.

+ +

References dmxWinPrivateKey.

+ +

Referenced by dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + + - - - + + - - + + -
Bool dmxPositionWindow WindowPtr  pWindow, Bool dmxPositionWindow (WindowPtr  pWindow,
int  x, int  x,
int  yint  y 
)
-
- - - - - -
-   - - -

-Change the position of pWindow to be x, y.

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + -
Bool dmxRealizeWindow WindowPtr  pWindow  ) Bool dmxRealizeWindow (WindowPtr  pWindow ) 
-
- - - - - -
-   - - -

-Realize pWindow on the back-end server. If the lazy window creation optimization is enabled, the window is only realized when it at least partially overlaps the screen.

-

- - - - -
- + +
+

Realize pWindow on the back-end server. If the lazy window creation optimization is enabled, the window is only realized when it at least partially overlaps the screen.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_REALIZE, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCreateAndRealizeWindow(), dmxRealizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

+ +

Referenced by dmxRealizeWindow(), and dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + - - + + -
void dmxReparentWindow WindowPtr  pWindow, void dmxReparentWindow (WindowPtr  pWindow,
WindowPtr  pPriorParentWindowPtr  pPriorParent 
)
-
- - - - - -
-   - - -

-Reparent pWindow on the back-end server.

-

- - - - -
- + + + + +
+
+
- - - - + + + + + - - - + + + - - - + + + - - - + + + - - - + + - - + + -
void dmxResizeRootWindow WindowPtr  pRoot, void dmxResizeRootWindow (WindowPtr  pRoot,
int  x, int  x,
int  y, int  y,
int  w, int  w,
int  hint  h 
)
-
- - - - - -
-   - - -

-Change the location and size of the "root" window. Called from #dmxReconfigureRootWindow().

-

- - - - -
- + +
+

Change the location and size of the "root" window. Called from dmxConfigureRootWindow.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxScreens, dmxSync(), _dmxWinPriv::mapped, and _dmxWinPriv::window.

+ +

Referenced by dmxCreateWindow().

+ +
+ + +
+
+
- - - - + + + + + - - - + + + - - - + + + - - - + + + - - - + + - - + + -
void dmxResizeScreenWindow ScreenPtr  pScreen, void dmxResizeScreenWindow (ScreenPtr  pScreen,
int  x, int  x,
int  y, int  y,
int  w, int  w,
int  hint  h 
)
-
- - - - - -
-   - - -

-Change the location and size of the "screen" window. Called from #dmxReconfigureScreenWindow().

-

- - - - -
- + +
+

Change the location and size of the "screen" window. Called from dmxConfigureScreenWindow().

+ +

References _DMXScreenInfo::beDisplay, dmxScreens, dmxSync(), and _DMXScreenInfo::scrnWin.

+ +
+ + +
+
+
- - - - + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + - - + + -
void dmxResizeWindow WindowPtr  pWindow, void dmxResizeWindow (WindowPtr  pWindow,
int  x, int  x,
int  y, int  y,
unsigned int  w, unsigned int  w,
unsigned int  h, unsigned int  h,
WindowPtr  pSibWindowPtr  pSib 
)
-
- - - - - -
-   - - -

-Resize pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

-

- - - - -
- + +
+

Resize pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_RESIZE, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCreateAndRealizeWindow(), dmxResizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

+ +

Referenced by dmxResizeWindow(), and dmxScreenInit().

+ +
+ + +
+
+
- - - - + + + + + - - - + + - - + + -
void dmxRestackWindow WindowPtr  pWindow, void dmxRestackWindow (WindowPtr  pWindow,
WindowPtr  pOldNextSibWindowPtr  pOldNextSib 
)
-
- - - - - -
-   - - -

-Handle window restacking. The actual restacking occurs in dmxDoRestackWindow().

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + -
void dmxSetShape WindowPtr  pWindow  ) void dmxSetShape (WindowPtr  pWindow ) 
-
- - - - - -
-   - - -

-Set shape of pWindow on the back-end server.

-

- - - - -
- + +
+

Set shape of pWindow on the back-end server.

+ +

References DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxDoSetShape(), dmxScreens, dmxSetShape(), dmxSync(), _dmxWinPriv::isShaped, and _dmxWinPriv::window.

+ +

Referenced by dmxScreenInit(), and dmxSetShape().

+ +
+ + +
+
+
- - - - - - + + + + + + -
Bool dmxUnrealizeWindow WindowPtr  pWindow  ) Bool dmxUnrealizeWindow (WindowPtr  pWindow ) 
-
- - - - - -
-   - - -

-Unrealize pWindow on the back-end server.

-

- - - - -
- + + + + +
+
+
- - - - + + + + + + + + + + - - + + + + + +
void dmxWindowExposures WindowPtr  pWindow, static Bool dmxWindowExposurePredicate (Display *  dpy,
XEvent *  ev,
RegionPtr  prgn, XPointer  ptr 
) [static]
+ +
+ +

Referenced by dmxWindowExposures().

+ +
+ + +
+
+ + + + + + + + + - - + + + - - + + + + + + + -
void dmxWindowExposures (WindowPtr  pWindow,
RegionPtr  other_exposedRegionPtr  prgn,
RegionPtr  other_exposed 
)
-
- - - - - -
-   - - -

-Handle exposures on pWindow. Since window exposures are handled in DMX, the events that are generated by the back-end server are redundant, so we eat them here.

+

+
+

Handle exposures on pWindow. Since window exposures are handled in DMX, the events that are generated by the back-end server are redundant, so we eat them here.

+ +

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxScreens, dmxSync(), dmxWindowExposurePredicate(), dmxWindowExposures(), and _dmxWinPriv::window.

+ +

Referenced by dmxScreenInit(), and dmxWindowExposures().

+ +
+
+
-- cgit v1.2.3