Lines Matching refs:xywh
381 int xywh[4] = {0, 0, 0, 0}; in PetscDrawCheckResizedWindow_X() local
389 if (rank == 0) PetscCall(PetscDrawXiGetGeometry(win, xywh, xywh + 1, xywh + 2, xywh + 3)); in PetscDrawCheckResizedWindow_X()
391 PetscCallMPI(MPI_Bcast(xywh, 4, MPI_INT, 0, PetscObjectComm((PetscObject)draw))); in PetscDrawCheckResizedWindow_X()
394 draw->x = win->x = xywh[0]; in PetscDrawCheckResizedWindow_X()
395 draw->y = win->y = xywh[1]; in PetscDrawCheckResizedWindow_X()
396 if (xywh[2] == win->w && xywh[3] == win->h) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawCheckResizedWindow_X()
398 draw->w = win->w = xywh[2]; in PetscDrawCheckResizedWindow_X()
399 draw->h = win->h = xywh[3]; in PetscDrawCheckResizedWindow_X()
681 PetscInt xywh[4], osize = 4, nsizes = 2; in PetscDrawCreate_X() local
753 xywh[0] = x; in PetscDrawCreate_X()
754 xywh[1] = y; in PetscDrawCreate_X()
755 xywh[2] = w; in PetscDrawCreate_X()
756 xywh[3] = h; in PetscDrawCreate_X()
757 …Array(((PetscObject)draw)->options, ((PetscObject)draw)->prefix, "-geometry", xywh, &osize, NULL)); in PetscDrawCreate_X()
758 PetscCall(PetscCIntCast(xywh[0], &x)); in PetscDrawCreate_X()
759 PetscCall(PetscCIntCast(xywh[1], &y)); in PetscDrawCreate_X()
760 PetscCall(PetscCIntCast(xywh[2], &w)); in PetscDrawCreate_X()
761 PetscCall(PetscCIntCast(xywh[3], &h)); in PetscDrawCreate_X()