Lines Matching refs:masterPtr

150     struct Gridder *masterPtr;	/* Master window within which this window
239 static int CheckSlotData _ANSI_ARGS_((Gridder *masterPtr, int slot,
251 static void InitMasterData _ANSI_ARGS_((Gridder *masterPtr));
292 Gridder *masterPtr; /* master grid record */
329 masterPtr = GetGrid(master);
351 gridPtr = masterPtr->masterDataPtr;
357 SetGridSize(masterPtr);
429 if (slavePtr->masterPtr != NULL) {
466 if (slavePtr->masterPtr == NULL) {
472 Tcl_AppendElement(interp, Tk_PathName(slavePtr->masterPtr->tkwin));
508 masterPtr = GetGrid(master);
509 if (masterPtr->masterDataPtr == NULL) {
513 gridPtr = masterPtr->masterDataPtr;
521 while (masterPtr->flags & REQUESTED_RELAYOUT) {
522 Tk_CancelIdleCall(ArrangeGrid, (ClientData) masterPtr);
523 ArrangeGrid ((ClientData) masterPtr);
525 SetGridSize(masterPtr);
529 slotPtr = masterPtr->masterDataPtr->columnPtr;
530 if (x < masterPtr->masterDataPtr->startX) {
533 x -= masterPtr->masterDataPtr->startX;
539 slotPtr = masterPtr->masterDataPtr->rowPtr;
540 if (y < masterPtr->masterDataPtr->startY) {
543 y -= masterPtr->masterDataPtr->startY;
564 masterPtr = GetGrid(master);
566 interp->result = (masterPtr->flags & DONT_PROPAGATE) ? "0" : "1";
572 if ((!propagate) ^ (masterPtr->flags&DONT_PROPAGATE)) {
573 masterPtr->flags ^= DONT_PROPAGATE;
580 if (masterPtr->abortPtr != NULL) {
581 *masterPtr->abortPtr = 1;
583 if (!(masterPtr->flags & REQUESTED_RELAYOUT)) {
584 masterPtr->flags |= REQUESTED_RELAYOUT;
585 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) masterPtr);
601 masterPtr = GetGrid(master);
603 if (masterPtr->masterDataPtr != NULL) {
604 SetGridSize(masterPtr);
605 gridPtr = masterPtr->masterDataPtr;
659 masterPtr = GetGrid(master);
661 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
714 masterPtr = GetGrid(master);
717 ok = CheckSlotData(masterPtr, slot, slotType, checkOnly);
725 masterPtr->masterDataPtr->columnPtr :
726 masterPtr->masterDataPtr->rowPtr;
810 int last = masterPtr->masterDataPtr->rowMax - 1;
815 masterPtr->masterDataPtr->rowMax = last+1;
817 int last = masterPtr->masterDataPtr->columnMax - 1;
822 masterPtr->masterDataPtr->columnMax = last + 1;
825 if (masterPtr->abortPtr != NULL) {
826 *masterPtr->abortPtr = 1;
828 if (!(masterPtr->flags & REQUESTED_RELAYOUT)) {
829 masterPtr->flags |= REQUESTED_RELAYOUT;
830 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) masterPtr);
872 gridPtr = gridPtr->masterPtr;
905 if (slavePtr->masterPtr->tkwin != Tk_Parent(slavePtr->tkwin)) {
906 Tk_UnmaintainGeometry(slavePtr->tkwin, slavePtr->masterPtr->tkwin);
1156 * The slaves of masterPtr may get resized or moved.
1166 register Gridder *masterPtr = (Gridder *) clientData;
1168 GridMaster *slotPtr = masterPtr->masterDataPtr;
1173 masterPtr->flags &= ~REQUESTED_RELAYOUT;
1182 if (masterPtr->slavePtr == NULL) {
1186 if (masterPtr->masterDataPtr == NULL) {
1196 if (masterPtr->abortPtr != NULL) {
1197 *masterPtr->abortPtr = 1;
1199 masterPtr->abortPtr = &abort;
1201 Tcl_Preserve((ClientData) masterPtr);
1207 SetGridSize(masterPtr);
1208 width = ResolveConstraints(masterPtr, COLUMN, 0);
1209 height = ResolveConstraints(masterPtr, ROW, 0);
1210 width += 2*Tk_InternalBorderWidth(masterPtr->tkwin);
1211 height += 2*Tk_InternalBorderWidth(masterPtr->tkwin);
1213 if (((width != Tk_ReqWidth(masterPtr->tkwin))
1214 || (height != Tk_ReqHeight(masterPtr->tkwin)))
1215 && !(masterPtr->flags & DONT_PROPAGATE)) {
1216 Tk_GeometryRequest(masterPtr->tkwin, width, height);
1218 masterPtr->flags |= REQUESTED_RELAYOUT;
1219 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) masterPtr);
1221 masterPtr->abortPtr = NULL;
1222 Tcl_Release((ClientData) masterPtr);
1234 realWidth = Tk_Width(masterPtr->tkwin) -
1235 2*Tk_InternalBorderWidth(masterPtr->tkwin);
1236 realHeight = Tk_Height(masterPtr->tkwin) -
1237 2*Tk_InternalBorderWidth(masterPtr->tkwin);
1242 slotPtr->startX += Tk_InternalBorderWidth(masterPtr->tkwin);
1243 slotPtr->startY += Tk_InternalBorderWidth(masterPtr->tkwin);
1251 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL && !abort;
1275 if (masterPtr->tkwin == Tk_Parent(slavePtr->tkwin)) {
1294 if (Tk_IsMapped(masterPtr->tkwin)) {
1300 Tk_UnmaintainGeometry(slavePtr->tkwin, masterPtr->tkwin);
1303 Tk_MaintainGeometry(slavePtr->tkwin, masterPtr->tkwin,
1309 masterPtr->abortPtr = NULL;
1310 Tcl_Release((ClientData) masterPtr);
1335 ResolveConstraints(masterPtr, slotType, maxOffset)
1336 Gridder *masterPtr; /* The geometry master for this grid. */
1370 constraintCount = masterPtr->masterDataPtr->columnMax;
1371 slotCount = masterPtr->masterDataPtr->columnEnd;
1372 slotPtr = masterPtr->masterDataPtr->columnPtr;
1374 constraintCount = masterPtr->masterDataPtr->rowMax;
1375 slotCount = masterPtr->masterDataPtr->rowEnd;
1376 slotPtr = masterPtr->masterDataPtr->rowPtr;
1436 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
1453 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
1706 gridPtr->masterPtr = NULL;
1751 SetGridSize(masterPtr)
1752 Gridder *masterPtr; /* The geometry master for this grid. */
1757 for (slavePtr = masterPtr->slavePtr; slavePtr != NULL;
1762 masterPtr->masterDataPtr->columnEnd = maxX;
1763 masterPtr->masterDataPtr->rowEnd = maxY;
1764 CheckSlotData(masterPtr, maxX, COLUMN, CHECK_SPACE);
1765 CheckSlotData(masterPtr, maxY, ROW, CHECK_SPACE);
1790 CheckSlotData(masterPtr, slot, slotType, checkOnly)
1791 Gridder *masterPtr; /* the geometry master for this grid */
1807 if (checkOnly==CHECK_ONLY && (masterPtr->masterDataPtr == NULL)) {
1817 InitMasterData(masterPtr);
1818 end = (slotType==ROW) ? masterPtr->masterDataPtr->rowMax :
1819 masterPtr->masterDataPtr->columnMax;
1823 last = (slotType==ROW) ? masterPtr->masterDataPtr->rowSpace :
1824 masterPtr->masterDataPtr->columnSpace;
1829 masterPtr->masterDataPtr->rowPtr :
1830 masterPtr->masterDataPtr->columnPtr;
1836 masterPtr->masterDataPtr->rowPtr = new;
1837 masterPtr->masterDataPtr->rowSpace = slot+PREALLOC;
1839 masterPtr->masterDataPtr->columnPtr = new;
1840 masterPtr->masterDataPtr->columnSpace = slot+PREALLOC;
1845 masterPtr->masterDataPtr->rowMax = slot+1;
1847 masterPtr->masterDataPtr->columnMax = slot+1;
1875 InitMasterData(masterPtr)
1876 Gridder *masterPtr;
1879 if (masterPtr->masterDataPtr == NULL) {
1880 GridMaster *gridPtr = masterPtr->masterDataPtr =
1922 register Gridder *masterPtr, *slavePtr2;
1925 masterPtr = slavePtr->masterPtr;
1926 if (masterPtr == NULL) {
1930 gridPtr = masterPtr->masterDataPtr;
1931 if (masterPtr->slavePtr == slavePtr) {
1932 masterPtr->slavePtr = slavePtr->nextPtr;
1935 for (slavePtr2 = masterPtr->slavePtr; ; slavePtr2 = slavePtr2->nextPtr) {
1945 if (!(masterPtr->flags & REQUESTED_RELAYOUT)) {
1946 masterPtr->flags |= REQUESTED_RELAYOUT;
1947 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) masterPtr);
1949 if (masterPtr->abortPtr != NULL) {
1950 *masterPtr->abortPtr = 1;
1956 slavePtr->masterPtr = NULL;
2032 if ((gridPtr->masterPtr != NULL) &&
2033 !(gridPtr->masterPtr->flags & REQUESTED_RELAYOUT)) {
2035 gridPtr->masterPtr->flags |= REQUESTED_RELAYOUT;
2036 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) gridPtr->masterPtr);
2042 if (gridPtr->masterPtr != NULL) {
2048 gridPtr2->masterPtr = NULL;
2108 Gridder *masterPtr = (Gridder *)NULL;
2176 masterPtr = NULL;
2263 masterPtr = GetGrid(other);
2264 InitMasterData(masterPtr);
2347 if (masterPtr == NULL) {
2348 masterPtr = slavePtr->masterPtr;
2351 if (masterPtr == NULL) {
2352 masterPtr = GetGrid(parent);
2353 InitMasterData(masterPtr);
2356 if (slavePtr->masterPtr != NULL && slavePtr->masterPtr != masterPtr) {
2358 slavePtr->masterPtr = NULL;
2361 if (slavePtr->masterPtr == NULL) {
2362 Gridder *tempPtr = masterPtr->slavePtr;
2363 slavePtr->masterPtr = masterPtr;
2364 masterPtr->slavePtr = slavePtr;
2374 for (ancestor = masterPtr->tkwin; ; ancestor = Tk_Parent(ancestor)) {
2380 " inside ", Tk_PathName(masterPtr->tkwin),
2391 if (masterPtr->masterPtr == slavePtr) {
2393 " inside ", Tk_PathName(masterPtr->tkwin),
2411 if (masterPtr->masterDataPtr == NULL) {
2414 slavePtr->row = masterPtr->masterDataPtr->rowEnd;
2425 if (masterPtr->abortPtr != NULL) {
2426 *masterPtr->abortPtr = 1;
2428 if (!(masterPtr->flags & REQUESTED_RELAYOUT)) {
2429 masterPtr->flags |= REQUESTED_RELAYOUT;
2430 Tcl_DoWhenIdle(ArrangeGrid, (ClientData) masterPtr);
2449 if (masterPtr == NULL) {
2465 if (masterPtr->masterDataPtr != NULL) {
2466 SetGridSize(masterPtr);
2467 lastRow = masterPtr->masterDataPtr->rowEnd - 1;
2479 for (match=0, slavePtr = masterPtr->slavePtr; slavePtr != NULL;
2498 if (masterPtr == NULL) {
2503 SetGridSize(masterPtr);