Lines Matching defs:clicked_t
2144 float clicked_t = 0.0f;
2154 clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_usable_sz, 0.0f, 1.0f) : 0.0f;
2156 clicked_t = 1.0f - clicked_t;
2170 clicked_t = SliderCalcRatioFromValueT<TYPE,FLOATTYPE>(data_type, *v, v_min, v_max, power, linear_zero_pos);
2188 if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits
2191 clicked_t = ImSaturate(clicked_t + delta);
2201 if (clicked_t < linear_zero_pos)
2204 float a = 1.0f - (clicked_t / linear_zero_pos);
2213 a = (clicked_t - linear_zero_pos) / (1.0f - linear_zero_pos);
2215 a = clicked_t;
2225 v_new = ImLerp(v_min, v_max, clicked_t);
2231 FLOATTYPE v_new_off_f = (v_max - v_min) * clicked_t;