Lines Matching refs:pWin

102               WindowPtr pWin,  in RegionOperate()  argument
109 if (!pWin->parent) { in RegionOperate()
160 *destRgnp = (*create) (pWin); in RegionOperate()
175 (*pWin->drawable.pScreen->SetShape) (pWin, kind); in RegionOperate()
176 SendShapeNotify(pWin, kind); in RegionOperate()
181 CreateBoundingShape(WindowPtr pWin) in CreateBoundingShape() argument
185 extents.x1 = -wBorderWidth(pWin); in CreateBoundingShape()
186 extents.y1 = -wBorderWidth(pWin); in CreateBoundingShape()
187 extents.x2 = pWin->drawable.width + wBorderWidth(pWin); in CreateBoundingShape()
188 extents.y2 = pWin->drawable.height + wBorderWidth(pWin); in CreateBoundingShape()
193 CreateClipShape(WindowPtr pWin) in CreateClipShape() argument
199 extents.x2 = pWin->drawable.width; in CreateClipShape()
200 extents.y2 = pWin->drawable.height; in CreateClipShape()
235 WindowPtr pWin; in ProcShapeRectangles() local
246 rc = dixLookupWindow(&pWin, stuff->dest, client, DixSetAttrAccess); in ProcShapeRectangles()
278 if (!pWin->optional) in ProcShapeRectangles()
279 MakeWindowOptional(pWin); in ProcShapeRectangles()
282 destRgn = &pWin->optional->boundingShape; in ProcShapeRectangles()
285 destRgn = &pWin->optional->clipShape; in ProcShapeRectangles()
288 destRgn = &pWin->optional->inputShape; in ProcShapeRectangles()
294 return RegionOperate(client, pWin, (int) stuff->destKind, in ProcShapeRectangles()
331 WindowPtr pWin; in ProcShapeMask() local
343 rc = dixLookupWindow(&pWin, stuff->dest, client, DixSetAttrAccess); in ProcShapeMask()
360 pScreen = pWin->drawable.pScreen; in ProcShapeMask()
376 if (!pWin->optional) in ProcShapeMask()
377 MakeWindowOptional(pWin); in ProcShapeMask()
380 destRgn = &pWin->optional->boundingShape; in ProcShapeMask()
383 destRgn = &pWin->optional->clipShape; in ProcShapeMask()
386 destRgn = &pWin->optional->inputShape; in ProcShapeMask()
392 return RegionOperate(client, pWin, (int) stuff->destKind, in ProcShapeMask()
563 WindowPtr pWin; in ProcShapeOffset() local
571 rc = dixLookupWindow(&pWin, stuff->dest, client, DixSetAttrAccess); in ProcShapeOffset()
576 srcRgn = wBoundingShape(pWin); in ProcShapeOffset()
579 srcRgn = wClipShape(pWin); in ProcShapeOffset()
582 srcRgn = wInputShape(pWin); in ProcShapeOffset()
590 (*pWin->drawable.pScreen->SetShape) (pWin, stuff->destKind); in ProcShapeOffset()
592 SendShapeNotify(pWin, (int) stuff->destKind); in ProcShapeOffset()
625 WindowPtr pWin; in ProcShapeQueryExtents() local
632 rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); in ProcShapeQueryExtents()
639 .boundingShaped = (wBoundingShape(pWin) != 0), in ProcShapeQueryExtents()
640 .clipShaped = (wClipShape(pWin) != 0) in ProcShapeQueryExtents()
642 if ((region = wBoundingShape(pWin))) { in ProcShapeQueryExtents()
648 extents.x1 = -wBorderWidth(pWin); in ProcShapeQueryExtents()
649 extents.y1 = -wBorderWidth(pWin); in ProcShapeQueryExtents()
650 extents.x2 = pWin->drawable.width + wBorderWidth(pWin); in ProcShapeQueryExtents()
651 extents.y2 = pWin->drawable.height + wBorderWidth(pWin); in ProcShapeQueryExtents()
657 if ((region = wClipShape(pWin))) { in ProcShapeQueryExtents()
665 extents.x2 = pWin->drawable.width; in ProcShapeQueryExtents()
666 extents.y2 = pWin->drawable.height; in ProcShapeQueryExtents()
692 WindowPtr pWin; in ShapeFreeClient() local
697 pWin = pShapeEvent->window; in ShapeFreeClient()
698 rc = dixLookupResourceByType((void **) &pHead, pWin->drawable.id, in ShapeFreeClient()
734 WindowPtr pWin; in ProcShapeSelectInput() local
740 rc = dixLookupWindow(&pWin, stuff->window, client, DixReceiveAccess); in ProcShapeSelectInput()
743 rc = dixLookupResourceByType((void **) &pHead, pWin->drawable.id, in ProcShapeSelectInput()
766 pNewShapeEvent->window = pWin; in ProcShapeSelectInput()
784 !AddResource(pWin->drawable.id, ShapeEventType, in ProcShapeSelectInput()
826 SendShapeNotify(WindowPtr pWin, int which) in SendShapeNotify() argument
834 rc = dixLookupResourceByType((void **) &pHead, pWin->drawable.id, in SendShapeNotify()
840 region = wBoundingShape(pWin); in SendShapeNotify()
846 extents.x1 = -wBorderWidth(pWin); in SendShapeNotify()
847 extents.y1 = -wBorderWidth(pWin); in SendShapeNotify()
848 extents.x2 = pWin->drawable.width + wBorderWidth(pWin); in SendShapeNotify()
849 extents.y2 = pWin->drawable.height + wBorderWidth(pWin); in SendShapeNotify()
854 region = wClipShape(pWin); in SendShapeNotify()
862 extents.x2 = pWin->drawable.width; in SendShapeNotify()
863 extents.y2 = pWin->drawable.height; in SendShapeNotify()
868 region = wInputShape(pWin); in SendShapeNotify()
874 extents.x1 = -wBorderWidth(pWin); in SendShapeNotify()
875 extents.y1 = -wBorderWidth(pWin); in SendShapeNotify()
876 extents.x2 = pWin->drawable.width + wBorderWidth(pWin); in SendShapeNotify()
877 extents.y2 = pWin->drawable.height + wBorderWidth(pWin); in SendShapeNotify()
889 .window = pWin->drawable.id, in SendShapeNotify()
905 WindowPtr pWin; in ProcShapeInputSelected() local
911 rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); in ProcShapeInputSelected()
914 rc = dixLookupResourceByType((void **) &pHead, pWin->drawable.id, in ProcShapeInputSelected()
945 WindowPtr pWin; in ProcShapeGetRectangles() local
952 rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); in ProcShapeGetRectangles()
957 region = wBoundingShape(pWin); in ProcShapeGetRectangles()
960 region = wClipShape(pWin); in ProcShapeGetRectangles()
963 region = wInputShape(pWin); in ProcShapeGetRectangles()
976 rects->x = -(int) wBorderWidth(pWin); in ProcShapeGetRectangles()
977 rects->y = -(int) wBorderWidth(pWin); in ProcShapeGetRectangles()
978 rects->width = pWin->drawable.width + wBorderWidth(pWin); in ProcShapeGetRectangles()
979 rects->height = pWin->drawable.height + wBorderWidth(pWin); in ProcShapeGetRectangles()
984 rects->width = pWin->drawable.width; in ProcShapeGetRectangles()
985 rects->height = pWin->drawable.height; in ProcShapeGetRectangles()
988 rects->x = -(int) wBorderWidth(pWin); in ProcShapeGetRectangles()
989 rects->y = -(int) wBorderWidth(pWin); in ProcShapeGetRectangles()
990 rects->width = pWin->drawable.width + wBorderWidth(pWin); in ProcShapeGetRectangles()
991 rects->height = pWin->drawable.height + wBorderWidth(pWin); in ProcShapeGetRectangles()