Lines Matching refs:rects

947     xRectangle *rects;  in ProcShapeGetRectangles()  local
971 rects = malloc(sizeof(xRectangle)); in ProcShapeGetRectangles()
972 if (!rects) 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()
982 rects->x = 0; in ProcShapeGetRectangles()
983 rects->y = 0; 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()
1000 rects = xallocarray(nrects, sizeof(xRectangle)); in ProcShapeGetRectangles()
1001 if (!rects && nrects) in ProcShapeGetRectangles()
1004 rects[i].x = box->x1; in ProcShapeGetRectangles()
1005 rects[i].y = box->y1; in ProcShapeGetRectangles()
1006 rects[i].width = box->x2 - box->x1; in ProcShapeGetRectangles()
1007 rects[i].height = box->y2 - box->y1; in ProcShapeGetRectangles()
1021 SwapShorts((short *) rects, (unsigned long) nrects * 4); in ProcShapeGetRectangles()
1024 WriteToClient(client, nrects * sizeof(xRectangle), rects); in ProcShapeGetRectangles()
1025 free(rects); in ProcShapeGetRectangles()