HomeSort by relevance Sort by last modified time
    Searched refs:knobHeight (Results 1 - 2 of 2) sorted by null

  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
Slider.java 132 float knobHeight = knob == null ? 0 : knob.getMinHeight();
133 position = y - bg.getBottomHeight() - knobHeight * 0.5f;
134 value = min + (max - min) * visualInterpolationInverse.apply(position / (height - knobHeight));
136 position = Math.min(height - knobHeight, position);
ProgressBar.java 124 float knobHeight = knob == null ? 0 : knob.getMinHeight();
147 knobHeightHalf = knobHeight * 0.5f;
148 position = (positionHeight - knobHeight) * percent;
149 position = Math.min(positionHeight - knobHeight, position) + bg.getBottomHeight();
164 if (knob != null) knob.draw(batch, x + (int)((width - knobWidth) * 0.5f), (int)(y + position), knobWidth, knobHeight);
199 if (knob != null) knob.draw(batch, (int)(x + position), (int)(y + (height - knobHeight) * 0.5f), knobWidth, knobHeight);

Completed in 43 milliseconds