Lines Matching refs:masterPtr
32 struct Packer *masterPtr; /* Master window within which this window
135 Packer *prevPtr, Packer *masterPtr, int argc,
197 if (prevPtr->masterPtr == NULL) {
202 return PackAfter(interp, prevPtr, prevPtr->masterPtr, argc-3, argv+3);
205 Packer *masterPtr;
213 masterPtr = GetPacker(tkwin2);
214 prevPtr = masterPtr->slavePtr;
220 return PackAfter(interp, prevPtr, masterPtr, argc-3, argv+3);
222 Packer *packPtr, *masterPtr;
231 if (packPtr->masterPtr == NULL) {
236 masterPtr = packPtr->masterPtr;
237 prevPtr = masterPtr->slavePtr;
250 return PackAfter(interp, prevPtr, masterPtr, argc-3, argv+3);
269 if ((slavePtr != NULL) && (slavePtr->masterPtr != NULL)) {
272 if (slavePtr->masterPtr->tkwin != Tk_Parent(slavePtr->tkwin)) {
274 slavePtr->masterPtr->tkwin);
296 if (slavePtr->masterPtr == NULL) {
302 Tcl_AppendElement(interp, Tk_PathName(slavePtr->masterPtr->tkwin));
329 Packer *masterPtr;
341 masterPtr = GetPacker(master);
343 if (masterPtr->flags & DONT_PROPAGATE) {
354 masterPtr->flags &= ~DONT_PROPAGATE;
361 if (masterPtr->abortPtr != NULL) {
362 *masterPtr->abortPtr = 1;
364 if (!(masterPtr->flags & REQUESTED_REPACK)) {
365 masterPtr->flags |= REQUESTED_REPACK;
366 Tcl_DoWhenIdle(ArrangePacking, (ClientData) masterPtr);
369 masterPtr->flags |= DONT_PROPAGATE;
373 Packer *masterPtr, *slavePtr;
384 masterPtr = GetPacker(master);
385 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
403 if ((packPtr != NULL) && (packPtr->masterPtr != NULL)) {
406 if (packPtr->masterPtr->tkwin != Tk_Parent(packPtr->tkwin)) {
408 packPtr->masterPtr->tkwin);
452 packPtr = packPtr->masterPtr;
486 if (slavePtr->masterPtr->tkwin != Tk_Parent(slavePtr->tkwin)) {
487 Tk_UnmaintainGeometry(slavePtr->tkwin, slavePtr->masterPtr->tkwin);
509 * The packed slaves of masterPtr may get resized or
520 register Packer *masterPtr = (Packer *) clientData;
538 masterPtr->flags &= ~REQUESTED_REPACK;
545 if (masterPtr->slavePtr == NULL) {
555 if (masterPtr->abortPtr != NULL) {
556 *masterPtr->abortPtr = 1;
558 masterPtr->abortPtr = &abort;
560 Tcl_Preserve((ClientData) masterPtr);
582 intBWidth = Tk_InternalBorderWidth(masterPtr->tkwin);
584 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
619 if (((maxWidth != Tk_ReqWidth(masterPtr->tkwin))
620 || (maxHeight != Tk_ReqHeight(masterPtr->tkwin)))
621 && !(masterPtr->flags & DONT_PROPAGATE)) {
622 Tk_GeometryRequest(masterPtr->tkwin, maxWidth, maxHeight);
623 masterPtr->flags |= REQUESTED_REPACK;
624 Tcl_DoWhenIdle(ArrangePacking, (ClientData) masterPtr);
640 cavityWidth = Tk_Width(masterPtr->tkwin) - 2*intBWidth;
641 cavityHeight = Tk_Height(masterPtr->tkwin) - 2*intBWidth;
642 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
763 if (masterPtr->tkwin == Tk_Parent(slavePtr->tkwin)) {
782 if (Tk_IsMapped(masterPtr->tkwin)) {
788 Tk_UnmaintainGeometry(slavePtr->tkwin, masterPtr->tkwin);
791 Tk_MaintainGeometry(slavePtr->tkwin, masterPtr->tkwin,
808 masterPtr->abortPtr = NULL;
809 Tcl_Release((ClientData) masterPtr);
982 packPtr->masterPtr = NULL;
1018 PackAfter(interp, prevPtr, masterPtr, argc, argv)
1022 * child of masterPtr. */
1023 Packer *masterPtr; /* Master in which to pack windows. */
1056 tkwin = Tk_NameToWindow(interp, argv[0], masterPtr->tkwin);
1062 for (ancestor = masterPtr->tkwin; ; ancestor = Tk_Parent(ancestor)) {
1069 " inside ", Tk_PathName(masterPtr->tkwin),
1077 if (tkwin == masterPtr->tkwin) {
1182 if (packPtr->masterPtr != NULL) {
1183 if ((packPtr->masterPtr != masterPtr) &&
1184 (packPtr->masterPtr->tkwin
1187 packPtr->masterPtr->tkwin);
1198 packPtr->masterPtr = masterPtr;
1200 packPtr->nextPtr = masterPtr->slavePtr;
1201 masterPtr->slavePtr = packPtr;
1216 if (masterPtr->abortPtr != NULL) {
1217 *masterPtr->abortPtr = 1;
1219 if (!(masterPtr->flags & REQUESTED_REPACK)) {
1220 masterPtr->flags |= REQUESTED_REPACK;
1221 Tcl_DoWhenIdle(ArrangePacking, (ClientData) masterPtr);
1251 register Packer *masterPtr, *packPtr2;
1253 masterPtr = packPtr->masterPtr;
1254 if (masterPtr == NULL) {
1257 if (masterPtr->slavePtr == packPtr) {
1258 masterPtr->slavePtr = packPtr->nextPtr;
1260 for (packPtr2 = masterPtr->slavePtr; ; packPtr2 = packPtr2->nextPtr) {
1270 if (!(masterPtr->flags & REQUESTED_REPACK)) {
1271 masterPtr->flags |= REQUESTED_REPACK;
1272 Tcl_DoWhenIdle(ArrangePacking, (ClientData) masterPtr);
1274 if (masterPtr->abortPtr != NULL) {
1275 *masterPtr->abortPtr = 1;
1278 packPtr->masterPtr = NULL;
1343 if ((packPtr->masterPtr != NULL)
1344 && !(packPtr->masterPtr->flags & REQUESTED_REPACK)) {
1346 packPtr->masterPtr->flags |= REQUESTED_REPACK;
1347 Tcl_DoWhenIdle(ArrangePacking, (ClientData) packPtr->masterPtr);
1353 if (packPtr->masterPtr != NULL) {
1361 slavePtr->masterPtr = NULL;
1431 Packer *masterPtr, *slavePtr, *prevPtr, *otherPtr;
1457 masterPtr = NULL;
1479 if (slavePtr->masterPtr == NULL) {
1506 if (prevPtr->masterPtr == NULL) {
1512 masterPtr = prevPtr->masterPtr;
1529 if (otherPtr->masterPtr == NULL) {
1532 masterPtr = otherPtr->masterPtr;
1533 prevPtr = masterPtr->slavePtr;
1572 masterPtr = GetPacker(other);
1573 prevPtr = masterPtr->slavePtr;
1642 if (!positionGiven && (slavePtr->masterPtr != NULL)) {
1643 masterPtr = slavePtr->masterPtr;
1653 masterPtr = slavePtr->masterPtr;
1664 masterPtr = GetPacker(Tk_Parent(slave));
1665 prevPtr = masterPtr->slavePtr;
1680 for (ancestor = masterPtr->tkwin; ; ancestor = Tk_Parent(ancestor)) {
1686 " inside ", Tk_PathName(masterPtr->tkwin),
1691 if (slave == masterPtr->tkwin) {
1702 if (slavePtr->masterPtr != NULL) {
1703 if ((slavePtr->masterPtr != masterPtr) &&
1704 (slavePtr->masterPtr->tkwin
1707 slavePtr->masterPtr->tkwin);
1711 slavePtr->masterPtr = masterPtr;
1713 slavePtr->nextPtr = masterPtr->slavePtr;
1714 masterPtr->slavePtr = slavePtr;
1728 if (masterPtr->abortPtr != NULL) {
1729 *masterPtr->abortPtr = 1;
1731 if (!(masterPtr->flags & REQUESTED_REPACK)) {
1732 masterPtr->flags |= REQUESTED_REPACK;
1733 Tcl_DoWhenIdle(ArrangePacking, (ClientData) masterPtr);