| 379 | } |
| 380 | |
| 381 | bool DragFloatValid( const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags ) |
| 382 | { |
| 383 | bool res = DragFloat( label, v, v_speed, v_min, v_max, format, flags ); |
| 384 | *v = std::clamp( *v, v_min, v_max ); |
| 385 | drawTooltip( v_min, v_max ); |
| 386 | return res; |
| 387 | } |
| 388 | |
| 389 | bool DragFloatValidLineWidth( const char* label, float* value ) |
| 390 | { |
no test coverage detected