Lines Matching refs:winItemPtr
76 WindowItem *winItemPtr));
187 WindowItem *winItemPtr = (WindowItem *) itemPtr;
198 winItemPtr->tkwin = NULL;
199 winItemPtr->width = 0;
200 winItemPtr->height = 0;
201 winItemPtr->anchor = TK_ANCHOR_CENTER;
202 winItemPtr->canvas = canvas;
261 WindowItem *winItemPtr = (WindowItem *) itemPtr;
265 Tcl_Obj *subobj = Tcl_NewDoubleObj(winItemPtr->x);
267 subobj = Tcl_NewDoubleObj(winItemPtr->y);
283 if ((Tk_CanvasGetCoordFromObj(interp, canvas, objv[0], &winItemPtr->x)
285 &winItemPtr->y) != TCL_OK)) {
288 ComputeWindowBbox(canvas, winItemPtr);
327 WindowItem *winItemPtr = (WindowItem *) itemPtr;
331 oldWindow = winItemPtr->tkwin;
334 (CONST char **) objv, (char *) winItemPtr, flags|TK_CONFIG_OBJS)) {
342 if (oldWindow != winItemPtr->tkwin) {
345 WinItemStructureProc, (ClientData) winItemPtr);
351 if (winItemPtr->tkwin != NULL) {
361 parent = Tk_Parent(winItemPtr->tkwin);
370 Tk_PathName(winItemPtr->tkwin),
372 winItemPtr->tkwin = NULL;
376 if (((Tk_FakeWin *) (winItemPtr->tkwin))->flags & TK_TOP_HIERARCHY) {
379 if (winItemPtr->tkwin == canvasTkwin) {
382 Tk_CreateEventHandler(winItemPtr->tkwin, StructureNotifyMask,
383 WinItemStructureProc, (ClientData) winItemPtr);
384 Tk_ManageGeometry(winItemPtr->tkwin, &canvasGeomType,
385 (ClientData) winItemPtr);
388 if ((winItemPtr->tkwin != NULL)
390 if (canvasTkwin == Tk_Parent(winItemPtr->tkwin)) {
391 Tk_UnmapWindow(winItemPtr->tkwin);
393 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
397 ComputeWindowBbox(canvas, winItemPtr);
427 WindowItem *winItemPtr = (WindowItem *) itemPtr;
430 if (winItemPtr->tkwin != NULL) {
431 Tk_DeleteEventHandler(winItemPtr->tkwin, StructureNotifyMask,
432 WinItemStructureProc, (ClientData) winItemPtr);
433 Tk_ManageGeometry(winItemPtr->tkwin, (Tk_GeomMgr *) NULL,
435 if (canvasTkwin != Tk_Parent(winItemPtr->tkwin)) {
436 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
438 Tk_UnmapWindow(winItemPtr->tkwin);
464 ComputeWindowBbox(canvas, winItemPtr)
466 WindowItem *winItemPtr; /* Item whose bbox is to be
470 Tk_State state = winItemPtr->header.state;
472 x = (int) (winItemPtr->x + ((winItemPtr->x >= 0) ? 0.5 : - 0.5));
473 y = (int) (winItemPtr->y + ((winItemPtr->y >= 0) ? 0.5 : - 0.5));
478 if ((winItemPtr->tkwin == NULL) || (state == TK_STATE_HIDDEN)) {
486 winItemPtr->header.x1 = x;
487 winItemPtr->header.x2 = winItemPtr->header.x1 + 1;
488 winItemPtr->header.y1 = y;
489 winItemPtr->header.y2 = winItemPtr->header.y1 + 1;
497 width = winItemPtr->width;
499 width = Tk_ReqWidth(winItemPtr->tkwin);
504 height = winItemPtr->height;
506 height = Tk_ReqHeight(winItemPtr->tkwin);
516 switch (winItemPtr->anchor) {
553 winItemPtr->header.x1 = x;
554 winItemPtr->header.y1 = y;
555 winItemPtr->header.x2 = x + width;
556 winItemPtr->header.y2 = y + height;
596 WindowItem *winItemPtr = (WindowItem *) itemPtr;
602 if (winItemPtr->tkwin == NULL) {
614 if (canvasTkwin == Tk_Parent(winItemPtr->tkwin)) {
615 Tk_UnmapWindow(winItemPtr->tkwin);
617 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
621 Tk_CanvasWindowCoords(canvas, (double) winItemPtr->header.x1,
622 (double) winItemPtr->header.y1, &x, &y);
623 width = winItemPtr->header.x2 - winItemPtr->header.x1;
624 height = winItemPtr->header.y2 - winItemPtr->header.y1;
635 if (canvasTkwin == Tk_Parent(winItemPtr->tkwin)) {
636 Tk_UnmapWindow(winItemPtr->tkwin);
638 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
648 if (canvasTkwin == Tk_Parent(winItemPtr->tkwin)) {
649 if ((x != Tk_X(winItemPtr->tkwin)) || (y != Tk_Y(winItemPtr->tkwin))
650 || (width != Tk_Width(winItemPtr->tkwin))
651 || (height != Tk_Height(winItemPtr->tkwin))) {
652 Tk_MoveResizeWindow(winItemPtr->tkwin, x, y, width, height);
654 Tk_MapWindow(winItemPtr->tkwin);
656 Tk_MaintainGeometry(winItemPtr->tkwin, canvasTkwin, x, y,
688 WindowItem *winItemPtr = (WindowItem *) itemPtr;
691 x1 = winItemPtr->header.x1;
692 y1 = winItemPtr->header.y1;
693 x2 = winItemPtr->header.x2;
694 y2 = winItemPtr->header.y2;
748 WindowItem *winItemPtr = (WindowItem *) itemPtr;
750 if ((rectPtr[2] <= winItemPtr->header.x1)
751 || (rectPtr[0] >= winItemPtr->header.x2)
752 || (rectPtr[3] <= winItemPtr->header.y1)
753 || (rectPtr[1] >= winItemPtr->header.y2)) {
756 if ((rectPtr[0] <= winItemPtr->header.x1)
757 && (rectPtr[1] <= winItemPtr->header.y1)
758 && (rectPtr[2] >= winItemPtr->header.x2)
759 && (rectPtr[3] >= winItemPtr->header.y2)) {
827 WindowItem *winItemPtr = (WindowItem *)itemPtr;
831 Tk_Window tkwin = winItemPtr->tkwin;
833 if (prepass || winItemPtr->tkwin == NULL) {
845 x = winItemPtr->x;
846 y = Tk_CanvasPsY(canvas, winItemPtr->y);
848 switch (winItemPtr->anchor) {
977 WindowItem *winItemPtr = (WindowItem *) itemPtr;
979 winItemPtr->x = originX + scaleX*(winItemPtr->x - originX);
980 winItemPtr->y = originY + scaleY*(winItemPtr->y - originY);
981 if (winItemPtr->width > 0) {
982 winItemPtr->width = (int) (scaleX*winItemPtr->width);
984 if (winItemPtr->height > 0) {
985 winItemPtr->height = (int) (scaleY*winItemPtr->height);
987 ComputeWindowBbox(canvas, winItemPtr);
1016 WindowItem *winItemPtr = (WindowItem *) itemPtr;
1018 winItemPtr->x += deltaX;
1019 winItemPtr->y += deltaY;
1020 ComputeWindowBbox(canvas, winItemPtr);
1049 WindowItem *winItemPtr = (WindowItem *) clientData;
1052 winItemPtr->tkwin = NULL;
1081 WindowItem *winItemPtr = (WindowItem *) clientData;
1083 ComputeWindowBbox(winItemPtr->canvas, winItemPtr);
1090 DisplayWinItem(winItemPtr->canvas, (Tk_Item *) winItemPtr, NULL,
1119 WindowItem *winItemPtr = (WindowItem *) clientData;
1120 Tk_Window canvasTkwin = Tk_CanvasTkwin(winItemPtr->canvas);
1122 Tk_DeleteEventHandler(winItemPtr->tkwin, StructureNotifyMask,
1123 WinItemStructureProc, (ClientData) winItemPtr);
1124 if (canvasTkwin != Tk_Parent(winItemPtr->tkwin)) {
1125 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
1127 Tk_UnmapWindow(winItemPtr->tkwin);
1128 winItemPtr->tkwin = NULL;