Lines Matching refs:winItemPtr

66 			    WindowItem *winItemPtr));
168 WindowItem *winItemPtr = (WindowItem *) itemPtr;
182 winItemPtr->tkwin = NULL;
183 winItemPtr->width = 0;
184 winItemPtr->height = 0;
185 winItemPtr->anchor = TK_ANCHOR_CENTER;
186 winItemPtr->canvas = canvas;
192 if ((Tk_CanvasGetCoord(interp, canvas, argv[0], &winItemPtr->x) != TCL_OK)
194 &winItemPtr->y) != TCL_OK)) {
236 WindowItem *winItemPtr = (WindowItem *) itemPtr;
240 Tcl_PrintDouble(interp, winItemPtr->x, x);
241 Tcl_PrintDouble(interp, winItemPtr->y, y);
244 if ((Tk_CanvasGetCoord(interp, canvas, argv[0], &winItemPtr->x)
246 &winItemPtr->y) != TCL_OK)) {
249 ComputeWindowBbox(canvas, winItemPtr);
286 WindowItem *winItemPtr = (WindowItem *) itemPtr;
290 oldWindow = winItemPtr->tkwin;
293 (char *) winItemPtr, flags) != TCL_OK) {
301 if (oldWindow != winItemPtr->tkwin) {
304 WinItemStructureProc, (ClientData) winItemPtr);
310 if (winItemPtr->tkwin != NULL) {
320 parent = Tk_Parent(winItemPtr->tkwin);
329 Tk_PathName(winItemPtr->tkwin),
331 winItemPtr->tkwin = NULL;
335 if (((Tk_FakeWin *) (winItemPtr->tkwin))->flags & TK_TOP_LEVEL) {
338 if (winItemPtr->tkwin == canvasTkwin) {
341 Tk_CreateEventHandler(winItemPtr->tkwin, StructureNotifyMask,
342 WinItemStructureProc, (ClientData) winItemPtr);
343 Tk_ManageGeometry(winItemPtr->tkwin, &canvasGeomType,
344 (ClientData) winItemPtr);
348 ComputeWindowBbox(canvas, winItemPtr);
378 WindowItem *winItemPtr = (WindowItem *) itemPtr;
381 if (winItemPtr->tkwin != NULL) {
382 Tk_DeleteEventHandler(winItemPtr->tkwin, StructureNotifyMask,
383 WinItemStructureProc, (ClientData) winItemPtr);
384 Tk_ManageGeometry(winItemPtr->tkwin, (Tk_GeomMgr *) NULL,
386 if (canvasTkwin != Tk_Parent(winItemPtr->tkwin)) {
387 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
389 Tk_UnmapWindow(winItemPtr->tkwin);
415 ComputeWindowBbox(canvas, winItemPtr)
417 WindowItem *winItemPtr; /* Item whose bbox is to be
422 x = winItemPtr->x + ((winItemPtr->x >= 0) ? 0.5 : - 0.5);
423 y = winItemPtr->y + ((winItemPtr->y >= 0) ? 0.5 : - 0.5);
425 if (winItemPtr->tkwin == NULL) {
426 winItemPtr->header.x1 = winItemPtr->header.x2 = x;
427 winItemPtr->header.y1 = winItemPtr->header.y2 = y;
435 width = winItemPtr->width;
437 width = Tk_ReqWidth(winItemPtr->tkwin);
442 height = winItemPtr->height;
444 height = Tk_ReqHeight(winItemPtr->tkwin);
454 switch (winItemPtr->anchor) {
491 winItemPtr->header.x1 = x;
492 winItemPtr->header.y1 = y;
493 winItemPtr->header.x2 = x + width;
494 winItemPtr->header.y2 = y + height;
534 WindowItem *winItemPtr = (WindowItem *) itemPtr;
539 if (winItemPtr->tkwin == NULL) {
543 Tk_CanvasWindowCoords(canvas, (double) winItemPtr->header.x1,
544 (double) winItemPtr->header.y1, &x, &y);
545 width = winItemPtr->header.x2 - winItemPtr->header.x1;
546 height = winItemPtr->header.y2 - winItemPtr->header.y1;
553 if (canvasTkwin == Tk_Parent(winItemPtr->tkwin)) {
554 if ((x != Tk_X(winItemPtr->tkwin)) || (y != Tk_Y(winItemPtr->tkwin))
555 || (width != Tk_Width(winItemPtr->tkwin))
556 || (height != Tk_Height(winItemPtr->tkwin))) {
557 Tk_MoveResizeWindow(winItemPtr->tkwin, x, y, width, height);
559 Tk_MapWindow(winItemPtr->tkwin);
561 Tk_MaintainGeometry(winItemPtr->tkwin, canvasTkwin, x, y,
593 WindowItem *winItemPtr = (WindowItem *) itemPtr;
596 x1 = winItemPtr->header.x1;
597 y1 = winItemPtr->header.y1;
598 x2 = winItemPtr->header.x2;
599 y2 = winItemPtr->header.y2;
653 WindowItem *winItemPtr = (WindowItem *) itemPtr;
655 if ((rectPtr[2] <= winItemPtr->header.x1)
656 || (rectPtr[0] >= winItemPtr->header.x2)
657 || (rectPtr[3] <= winItemPtr->header.y1)
658 || (rectPtr[1] >= winItemPtr->header.y2)) {
661 if ((rectPtr[0] <= winItemPtr->header.x1)
662 && (rectPtr[1] <= winItemPtr->header.y1)
663 && (rectPtr[2] >= winItemPtr->header.x2)
664 && (rectPtr[3] >= winItemPtr->header.y2)) {
700 WindowItem *winItemPtr = (WindowItem *) itemPtr;
702 winItemPtr->x = originX + scaleX*(winItemPtr->x - originX);
703 winItemPtr->y = originY + scaleY*(winItemPtr->y - originY);
704 if (winItemPtr->width > 0) {
705 winItemPtr->width = scaleX*winItemPtr->width;
707 if (winItemPtr->height > 0) {
708 winItemPtr->height = scaleY*winItemPtr->height;
710 ComputeWindowBbox(canvas, winItemPtr);
740 WindowItem *winItemPtr = (WindowItem *) itemPtr;
742 winItemPtr->x += deltaX;
743 winItemPtr->y += deltaY;
744 ComputeWindowBbox(canvas, winItemPtr);
773 WindowItem *winItemPtr = (WindowItem *) clientData;
776 winItemPtr->tkwin = NULL;
805 WindowItem *winItemPtr = (WindowItem *) clientData;
807 ComputeWindowBbox(winItemPtr->canvas, winItemPtr);
808 DisplayWinItem(winItemPtr->canvas, (Tk_Item *) winItemPtr,
837 WindowItem *winItemPtr = (WindowItem *) clientData;
838 Tk_Window canvasTkwin = Tk_CanvasTkwin(winItemPtr->canvas);
840 Tk_DeleteEventHandler(winItemPtr->tkwin, StructureNotifyMask,
841 WinItemStructureProc, (ClientData) winItemPtr);
842 if (canvasTkwin != Tk_Parent(winItemPtr->tkwin)) {
843 Tk_UnmaintainGeometry(winItemPtr->tkwin, canvasTkwin);
845 Tk_UnmapWindow(winItemPtr->tkwin);
846 winItemPtr->tkwin = NULL;