Lines Matching defs:winRec

84     RootlessWindowRec *winRec;
89 winRec = WINREC(pWin);
90 if (winRec == NULL)
93 winRec->is_offscreen = ((state & XP_WINDOW_STATE_OFFSCREEN) != 0);
94 winRec->is_obscured = ((state & XP_WINDOW_STATE_OBSCURED) != 0);
95 pWin->unhittable = winRec->is_offscreen;
106 RootlessWindowRec *winRec;
108 winRec = WINREC(pWin);
110 if (xp_get_window_bounds(MAKE_WINDOW_ID(winRec->wid), &bounds) != Success)
183 RootlessDestroyFrame(WindowPtr pWin, RootlessWindowPtr winRec)
185 SCREENREC(pWin->drawable.pScreen)->imp->DestroyFrame(winRec->wid);
186 free(winRec);
197 RootlessWindowRec *winRec = WINREC(pWin);
200 if (winRec != NULL) {
201 RootlessDestroyFrame(pWin, winRec);
234 RootlessWindowRec *winRec = WINREC(pWin);
239 if (winRec == NULL)
262 SCREENREC(pWin->drawable.pScreen)->imp->ReshapeFrame(winRec->wid, pShape);
325 RootlessWindowRec *winRec = WINREC(pWin);
330 if (winRec) {
331 if (winRec->is_drawing) {
335 winRec->pixmap->devPrivate.ptr = winRec->pixelData;
336 SetPixmapBaseToScreen(winRec->pixmap, x - bw, y - bw);
350 * Initialize some basic attributes of the frame. Note that winRec
355 RootlessInitializeFrame(WindowPtr pWin, RootlessWindowRec * winRec)
360 winRec->win = pWin;
362 winRec->x = d->x - bw;
363 winRec->y = d->y - bw;
364 winRec->width = d->width + 2 * bw;
365 winRec->height = d->height + 2 * bw;
366 winRec->borderWidth = bw;
379 RootlessWindowRec *winRec;
392 winRec = malloc(sizeof(RootlessWindowRec));
394 if (!winRec)
397 RootlessInitializeFrame(pWin, winRec);
399 winRec->is_drawing = FALSE;
400 winRec->is_reorder_pending = FALSE;
401 winRec->pixmap = NULL;
402 winRec->wid = NULL;
403 winRec->level = 0;
405 SETWINREC(pWin, winRec);
413 if (!SCREENREC(pScreen)->imp->CreateFrame(winRec, pScreen,
414 winRec->x + SCREEN_TO_GLOBAL_X,
415 winRec->y + SCREEN_TO_GLOBAL_Y,
418 free(winRec);
429 return winRec;
447 RootlessWindowRec *winRec;
449 winRec = RootlessEnsureFrame(pWin);
450 if (winRec == NULL)
453 winRec->is_reorder_pending = TRUE;
487 RootlessWindowRec *winRec;
493 winRec = WINREC(pTopWin);
495 if (winRec == NULL && create && pWin->drawable.class == InputOutput) {
496 winRec = RootlessEnsureFrame(pTopWin);
499 if (winRec == NULL)
502 return winRec->wid;
513 RootlessWindowRec *winRec = WINREC(pWin);
518 if (winRec) {
521 SCREENREC(pScreen)->imp->UnmapFrame(winRec->wid);
523 winRec->is_reorder_pending = FALSE;
542 RootlessWindowRec *winRec = WINREC(pWin);
544 if (pWin->realized && winRec != NULL && !winRec->is_reorder_pending &&
556 if (!SCREENREC(pScreen)->imp->DoReorderWindow(winRec))
585 SCREENREC(pScreen)->imp->RestackFrame(winRec->wid, newPrevID);
600 RootlessWindowRec *winRec = WINREC(pWin);
604 if (winRec)
616 if (winRec && pWin->viewable) {
754 RootlessWindowRec *winRec;
763 winRec = WINREC(top);
764 if (winRec == NULL) {
770 RegionTranslate(&rgnDst, -winRec->x, -winRec->y);
774 SCREENREC(pScreen)->imp->CopyWindow(winRec->wid,
867 RootlessWindowRec *winRec = WINREC(pWin);
969 Bpp = winRec->win->drawable.bitsPerPixel / 8;
980 ((char *) winRec->pixelData)
984 winRec->bytesPerRow)
987 winRec->bytesPerRow,
992 fbBlt((FbBits *) (winRec->pixelData
994 ((copy_rect.y1 - oldY) * winRec->bytesPerRow)
996 winRec->bytesPerRow / sizeof(FbBits), 0,
1006 winRec->win->drawable.depth,
1007 winRec->win->drawable.bitsPerPixel,
1008 winRec->bytesPerRow,
1022 gResizeDeathBits = xallocarray(winRec->bytesPerRow, winRec->height);
1024 memcpy(gResizeDeathBits, winRec->pixelData,
1025 winRec->bytesPerRow * winRec->height);
1030 = GetScratchPixmapHeader(pScreen, winRec->width,
1031 winRec->height,
1032 winRec->win->drawable.depth,
1033 winRec->win->drawable.bitsPerPixel,
1034 winRec->bytesPerRow,
1043 winRec->x = newX;
1044 winRec->y = newY;
1045 winRec->width = newW;
1046 winRec->height = newH;
1047 winRec->borderWidth = newBW;
1053 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1069 winRec->win->drawable.depth,
1070 winRec->win->drawable.bitsPerPixel,
1071 winRec->bytesPerRow, winRec->pixelData);
1111 ((PixmapPtr) dst)->devPrivate.ptr = winRec->pixelData;
1117 ((PixmapPtr) dst)->devPrivate.ptr = winRec->pixelData;
1132 RootlessWindowRec *winRec = WINREC(pWin);
1146 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1180 RootlessWindowRec *winRec = WINREC(pWin);
1191 if (winRec) {
1193 oldX = winRec->x;
1194 oldY = winRec->y;
1201 oldBW = winRec->borderWidth;
1202 oldX = winRec->x;
1203 oldY = winRec->y;
1204 oldW = winRec->width;
1205 oldH = winRec->height;
1222 if (winRec) {
1227 if (winRec) {
1234 if (winRec) {
1236 winRec->x = x;
1237 winRec->y = y;
1239 SCREENREC(pScreen)->imp->MoveFrame(winRec->wid, pScreen,
1264 RootlessWindowRec *winRec = WINREC(pWin);
1274 if (winRec) {
1275 oldBW = winRec->borderWidth;
1276 oldX = winRec->x;
1277 oldY = winRec->y;
1278 oldW = winRec->width;
1279 oldH = winRec->height;
1298 if (winRec) {
1322 if (winRec) {
1323 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1346 RootlessWindowRec *winRec = WINREC(pWin);
1349 if (winRec == NULL)
1353 SCREENREC(pScreen)->imp->MoveFrame(winRec->wid, pScreen,
1354 winRec->x + SCREEN_TO_GLOBAL_X,
1355 winRec->y + SCREEN_TO_GLOBAL_Y);
1373 RootlessWindowRec *winRec = WINREC(pWin);
1378 || IsTopLevel(pWin) || winRec == NULL) {
1395 RootlessDestroyFrame(pWin, winRec);
1399 SCREENREC(pScreen)->imp->UnmapFrame(winRec->wid);
1405 SETWINREC(pTopWin, winRec);
1407 RootlessInitializeFrame(pTopWin, winRec);
1410 SCREENREC(pScreen)->imp->ResizeFrame(winRec->wid, pScreen,
1411 winRec->x + SCREEN_TO_GLOBAL_X,
1412 winRec->y + SCREEN_TO_GLOBAL_Y,
1413 winRec->width, winRec->height,
1417 SCREENREC(pScreen)->imp->SwitchWindow(winRec, pWin);
1421 winRec->is_reorder_pending = TRUE;
1435 RootlessWindowRec *winRec = WINREC(pWin);
1438 if (winRec == NULL)
1444 SCREENREC(pScreen)->imp->UpdateColormap(winRec->wid, pScreen);
1462 RootlessWindowRec *winRec = WINREC(pWin);
1467 if (winRec) {
1468 oldBW = winRec->borderWidth;
1469 oldX = winRec->x;
1470 oldY = winRec->y;
1471 oldW = winRec->width;
1472 oldH = winRec->height;
1491 if (winRec) {
1551 RootlessWindowRec *winRec;
1554 winRec = WINREC(pRoot);
1556 if (NULL == winRec)
1559 RootlessDestroyFrame(pRoot, winRec);
1569 RootlessWindowRec *winRec;
1590 winRec = WINREC(pWin);
1591 if (winRec != NULL) {
1593 SCREENREC(pScreen)->imp->HideWindow(winRec->wid);
1605 RootlessWindowRec *winRec;
1624 winRec = RootlessEnsureFrame(pWin);
1625 if (winRec == NULL)