glut/lib/mui/hslider.c
/* 
 * visible is windowheight/dataheight
 * top is top/dataheight
 */
visible is windowheight/dataheight
top is top/dataheight
visible is windowheight / dataheight top is top / dataheight
void
adjusthsthumb(muiObject *obj, double visible, double top)
{
    int size;
    if (visible >= 1.0) {
	    size = gethstrough(obj) + 1;
    } else {
	    size = visible*gethstrough(obj);
    }
    muiSetEnable(obj, 1);
    sethshalf(obj, size/2);
    muiSetHSValue(obj, (float) (1.0 - top));
}
void adjusthsthumb ( muiObject * obj , double visible , double top ) { int size ; if ( visible >= 1.0 ) { size = gethstrough ( obj ) + 1 ; } else { size = visible * gethstrough ( obj ) ; } muiSetEnable ( obj , 1 ) ; sethshalf ( obj , size / 2 ) ; muiSetHSValue ( obj , ( float ) ( 1.0 - top ) ) ; }
visible is windowheight/dataheight
 top is top/dataheight
visible is windowheight / dataheight top is top / dataheight