Lines Matching defs:newValue
769 BScrollBar::ValueChanged(float newValue)
771 TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue);
776 // if vertical, check bounds top and scroll if different from newValue
777 if (fOrientation == B_VERTICAL && targetBounds.top != newValue)
778 fTarget->ScrollBy(0.0, newValue - targetBounds.top);
780 // if horizontal, check bounds left and scroll if different from newValue
781 if (fOrientation == B_HORIZONTAL && targetBounds.left != newValue)
782 fTarget->ScrollBy(newValue - targetBounds.left, 0.0);
785 TRACE(" -> %.1f\n", newValue);
787 SetValue(newValue);