Lines Matching refs:totalUnits
182 scrollPtr->totalUnits = 0; in Tk_ScrollbarObjCmd()
385 resObjs[0] = Tcl_NewIntObj(scrollPtr->totalUnits); in ScrollbarWidgetObjCmd()
416 int totalUnits, windowUnits, firstUnit, lastUnit; in ScrollbarWidgetObjCmd() local
443 if (Tcl_GetIntFromObj(interp, objv[2], &totalUnits) != TCL_OK) { in ScrollbarWidgetObjCmd()
446 if (totalUnits < 0) { in ScrollbarWidgetObjCmd()
447 totalUnits = 0; in ScrollbarWidgetObjCmd()
461 if (totalUnits > 0) { in ScrollbarWidgetObjCmd()
468 scrollPtr->totalUnits = totalUnits; in ScrollbarWidgetObjCmd()
472 if (scrollPtr->totalUnits == 0) { in ScrollbarWidgetObjCmd()
476 scrollPtr->firstFraction = ((double) firstUnit)/totalUnits; in ScrollbarWidgetObjCmd()
477 scrollPtr->lastFraction = ((double) (lastUnit+1))/totalUnits; in ScrollbarWidgetObjCmd()