Lines Matching refs:slotPtr

237 			int elements, SlotInfo *slotPtr));
485 register SlotInfo *slotPtr;
529 slotPtr = masterPtr->masterDataPtr->columnPtr;
534 for (i=0;slotPtr[i].offset < x && i < endX; i++) {
539 slotPtr = masterPtr->masterDataPtr->rowPtr;
544 for (j=0;slotPtr[j].offset < y && j < endY; j++) {
688 SlotInfo *slotPtr = NULL;
724 slotPtr = (slotType == COLUMN) ?
736 slotPtr[slot].minSize,slotPtr[slot].pad,
737 slotPtr[slot].weight);
760 sprintf(interp->result,"%d",slotPtr[slot].minSize);
765 slotPtr[slot].minSize = size;
771 sprintf(interp->result,"%d",slotPtr[slot].weight);
779 slotPtr[slot].weight = wt;
784 sprintf(interp->result,"%d",slotPtr[slot].pad);
793 slotPtr[slot].pad = size;
811 while (last>=0 && slotPtr[last].weight==0 &&
812 slotPtr[last].pad==0 && slotPtr[last].minSize==0) {
818 while (last>=0 && slotPtr[last].weight==0 &&
819 slotPtr[last].pad==0 && slotPtr[last].minSize==0) {
935 AdjustOffsets(size, slots, slotPtr)
938 register SlotInfo *slotPtr; /* Pointer to slot array. */
948 diff = size - slotPtr[slots-1].offset;
964 totalWeight += slotPtr[slot].weight;
978 weight += slotPtr[slot].weight;
979 slotPtr[slot].offset += diff * weight / totalWeight;
990 if (slotPtr[slot].weight > 0) {
991 minSize += slotPtr[slot].minSize;
993 minSize += slotPtr[slot].offset - slotPtr[slot-1].offset;
995 minSize += slotPtr[slot].offset;
1008 if (slotPtr[slot].weight > 0) {
1009 offset += slotPtr[slot].minSize;
1011 offset += slotPtr[slot].offset - slotPtr[slot-1].offset;
1013 offset += slotPtr[slot].offset;
1015 slotPtr[slot].offset = offset;
1032 int current = (slot==0) ? slotPtr[slot].offset :
1033 slotPtr[slot].offset - slotPtr[slot-1].offset;
1034 if (current > slotPtr[slot].minSize) {
1035 totalWeight += slotPtr[slot].weight;
1036 slotPtr[slot].temp = slotPtr[slot].weight;
1038 slotPtr[slot].temp = 0;
1054 if (slotPtr[slot].temp == 0) {
1057 weight += slotPtr[slot].temp;
1058 current = (slot==0) ? slotPtr[slot].offset :
1059 slotPtr[slot].offset - slotPtr[slot-1].offset;
1060 maxDiff = totalWeight * (slotPtr[slot].minSize - current)
1061 / slotPtr[slot].temp;
1072 weight += slotPtr[slot].temp;
1073 slotPtr[slot].offset += newDiff * weight / totalWeight;
1168 GridMaster *slotPtr = masterPtr->masterDataPtr;
1238 slotPtr->startX = AdjustOffsets(realWidth,
1239 MAX(slotPtr->columnEnd,slotPtr->columnMax), slotPtr->columnPtr);
1240 slotPtr->startY = AdjustOffsets(realHeight,
1241 MAX(slotPtr->rowEnd,slotPtr->rowMax), slotPtr->rowPtr);
1242 slotPtr->startX += Tk_InternalBorderWidth(masterPtr->tkwin);
1243 slotPtr->startY += Tk_InternalBorderWidth(masterPtr->tkwin);
1258 x = (col>0) ? slotPtr->columnPtr[col-1].offset : 0;
1259 y = (row>0) ? slotPtr->rowPtr[row-1].offset : 0;
1261 width = slotPtr->columnPtr[slavePtr->numCols+col-1].offset - x;
1262 height = slotPtr->rowPtr[slavePtr->numRows+row-1].offset - y;
1264 x += slotPtr->startX;
1265 y += slotPtr->startY;
1341 register SlotInfo *slotPtr; /* Pointer to row/col constraints. */
1372 slotPtr = masterPtr->masterDataPtr->columnPtr;
1376 slotPtr = masterPtr->masterDataPtr->rowPtr;
1409 layoutPtr[slot].minSize = slotPtr[slot].minSize;
1410 layoutPtr[slot].weight = slotPtr[slot].weight;
1411 layoutPtr[slot].pad = slotPtr[slot].pad;
1649 slotPtr[slot].offset = layoutPtr[slot].minOffset;