Lines Matching defs:winRec
83 RootlessWindowRec *winRec;
87 winRec = WINREC (pWin);
88 if (winRec == NULL) return;
90 winRec->is_offscreen = ((state & XP_WINDOW_STATE_OFFSCREEN) != 0);
91 winRec->is_obscured = ((state & XP_WINDOW_STATE_OBSCURED) != 0);
92 pWin->rootlessUnhittable = winRec->is_offscreen;
101 RootlessWindowRec *winRec;
103 winRec = WINREC(pWin);
105 if (xp_get_window_bounds (MAKE_WINDOW_ID(winRec->wid), &bounds) != Success) return;
175 RootlessDestroyFrame(WindowPtr pWin, RootlessWindowPtr winRec)
177 SCREENREC(pWin->drawable.pScreen)->imp->DestroyFrame(winRec->wid);
178 free(winRec);
190 RootlessWindowRec *winRec = WINREC(pWin);
193 if (winRec != NULL) {
194 RootlessDestroyFrame(pWin, winRec);
229 RootlessWindowRec *winRec = WINREC(pWin);
234 if (winRec == NULL)
256 SCREENREC(pWin->drawable.pScreen)->imp->ReshapeFrame(winRec->wid, pShape);
322 RootlessWindowRec *winRec = WINREC(pWin);
327 if (winRec) {
328 if (winRec->is_drawing) {
332 winRec->pixmap->devPrivate.ptr = winRec->pixelData;
333 SetPixmapBaseToScreen(winRec->pixmap, x - bw, y - bw);
348 * Initialize some basic attributes of the frame. Note that winRec
353 RootlessInitializeFrame(WindowPtr pWin, RootlessWindowRec *winRec)
358 winRec->win = pWin;
360 winRec->x = d->x - bw;
361 winRec->y = d->y - bw;
362 winRec->width = d->width + 2*bw;
363 winRec->height = d->height + 2*bw;
364 winRec->borderWidth = bw;
377 RootlessWindowRec *winRec;
390 winRec = malloc(sizeof(RootlessWindowRec));
392 if (!winRec)
395 RootlessInitializeFrame(pWin, winRec);
397 winRec->is_drawing = FALSE;
398 winRec->is_reorder_pending = FALSE;
399 winRec->pixmap = NULL;
400 winRec->wid = NULL;
401 winRec->level = 0;
403 SETWINREC(pWin, winRec);
411 if (!SCREENREC(pScreen)->imp->CreateFrame(winRec, pScreen,
412 winRec->x + SCREEN_TO_GLOBAL_X,
413 winRec->y + SCREEN_TO_GLOBAL_Y,
417 free(winRec);
428 return winRec;
447 RootlessWindowRec *winRec;
449 winRec = RootlessEnsureFrame(pWin);
450 if (winRec == NULL)
453 winRec->is_reorder_pending = TRUE;
485 RootlessWindowRec *winRec;
491 winRec = WINREC(pTopWin);
493 if (winRec == NULL && create && pWin->drawable.class == InputOutput) {
494 winRec = RootlessEnsureFrame(pTopWin);
497 if (winRec == NULL)
500 return winRec->wid;
512 RootlessWindowRec *winRec = WINREC(pWin);
517 if (winRec) {
520 SCREENREC(pScreen)->imp->UnmapFrame(winRec->wid);
522 winRec->is_reorder_pending = FALSE;
542 RootlessWindowRec *winRec = WINREC(pWin);
544 if (pWin->realized && winRec != NULL && !winRec->is_reorder_pending && !windows_hidden) {
555 if (!SCREENREC(pScreen)->imp->DoReorderWindow(winRec))
582 SCREENREC(pScreen)->imp->RestackFrame(winRec->wid, newPrevID);
598 RootlessWindowRec *winRec = WINREC(pWin);
602 if (winRec)
614 if (winRec && pWin->viewable) {
755 RootlessWindowRec *winRec;
764 winRec = WINREC(top);
765 if (winRec == NULL) {
771 RegionTranslate(&rgnDst, -winRec->x, -winRec->y);
775 SCREENREC(pScreen)->imp->CopyWindow(winRec->wid,
851 RootlessWindowRec *winRec = WINREC(pWin);
954 Bpp = winRec->win->drawable.bitsPerPixel / 8;
967 ((char *) winRec->pixelData)
968 + ((copy_rect.y1 - oldY) * winRec->bytesPerRow)
969 + (copy_rect.x1 - oldX) * Bpp, winRec->bytesPerRow,
972 fbBlt((FbBits *) (winRec->pixelData
973 + ((copy_rect.y1 - oldY) * winRec->bytesPerRow)
975 winRec->bytesPerRow / sizeof(FbBits), 0,
986 winRec->win->drawable.depth,
987 winRec->win->drawable.bitsPerPixel,
988 winRec->bytesPerRow,
1002 gResizeDeathBits = malloc(winRec->bytesPerRow * winRec->height);
1004 memcpy(gResizeDeathBits, winRec->pixelData,
1005 winRec->bytesPerRow * winRec->height);
1009 = GetScratchPixmapHeader(pScreen, winRec->width,
1010 winRec->height,
1011 winRec->win->drawable.depth,
1012 winRec->win->drawable.bitsPerPixel,
1013 winRec->bytesPerRow,
1022 winRec->x = newX;
1023 winRec->y = newY;
1024 winRec->width = newW;
1025 winRec->height = newH;
1026 winRec->borderWidth = newBW;
1032 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1047 winRec->win->drawable.depth,
1048 winRec->win->drawable.bitsPerPixel,
1049 winRec->bytesPerRow, winRec->pixelData);
1089 ((PixmapPtr) dst)->devPrivate.ptr = winRec->pixelData;
1095 ((PixmapPtr) dst)->devPrivate.ptr = winRec->pixelData;
1111 RootlessWindowRec *winRec = WINREC(pWin);
1125 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1160 RootlessWindowRec *winRec = WINREC(pWin);
1171 if (winRec) {
1173 oldX = winRec->x;
1174 oldY = winRec->y;
1180 oldBW = winRec->borderWidth;
1181 oldX = winRec->x;
1182 oldY = winRec->y;
1183 oldW = winRec->width;
1184 oldH = winRec->height;
1201 if (winRec) {
1206 if (winRec) {
1213 if (winRec) {
1215 winRec->x = x;
1216 winRec->y = y;
1218 SCREENREC(pScreen)->imp->MoveFrame(winRec->wid, pScreen,
1243 RootlessWindowRec *winRec = WINREC(pWin);
1253 if (winRec) {
1254 oldBW = winRec->borderWidth;
1255 oldX = winRec->x;
1256 oldY = winRec->y;
1257 oldW = winRec->width;
1258 oldH = winRec->height;
1277 if (winRec) {
1298 if (winRec) {
1299 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1323 RootlessWindowRec *winRec = WINREC(pWin);
1326 if (winRec == NULL)
1330 SCREENREC(pScreen)->imp->MoveFrame(winRec->wid, pScreen,
1331 winRec->x + SCREEN_TO_GLOBAL_X,
1332 winRec->y + SCREEN_TO_GLOBAL_Y);
1351 RootlessWindowRec *winRec = WINREC(pWin);
1356 || IsTopLevel(pWin) || winRec == NULL)
1374 RootlessDestroyFrame(pWin, winRec);
1377 SCREENREC(pScreen)->imp->UnmapFrame(winRec->wid);
1383 SETWINREC(pTopWin, winRec);
1385 RootlessInitializeFrame(pTopWin, winRec);
1388 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1389 winRec->x + SCREEN_TO_GLOBAL_X,
1390 winRec->y + SCREEN_TO_GLOBAL_Y,
1391 winRec->width, winRec->height,
1395 SCREENREC(pScreen)->imp->SwitchWindow(winRec, pWin);
1399 winRec->is_reorder_pending = TRUE;
1414 RootlessWindowRec *winRec = WINREC (pWin);
1417 if (winRec == NULL)
1423 SCREENREC(pScreen)->imp->UpdateColormap(winRec->wid, pScreen);
1441 RootlessWindowRec *winRec = WINREC(pWin);
1446 if (winRec) {
1447 oldBW = winRec->borderWidth;
1448 oldX = winRec->x;
1449 oldY = winRec->y;
1450 oldW = winRec->width;
1451 oldH = winRec->height;
1470 if (winRec) {
1524 RootlessWindowRec *winRec;
1527 winRec = WINREC (pRoot);
1529 if (NULL == winRec)
1532 RootlessDestroyFrame (pRoot, winRec);
1542 RootlessWindowRec *winRec;
1565 winRec = WINREC (pWin);
1566 if (winRec != NULL)
1569 SCREENREC(pScreen)->imp->HideWindow(winRec->wid);
1581 RootlessWindowRec *winRec;
1602 winRec = RootlessEnsureFrame (pWin);
1603 if (winRec == NULL)