MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / DragFloatValid

Function DragFloatValid

source/MRViewer/ImGuiHelpers.cpp:381–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool 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
389bool DragFloatValidLineWidth( const char* label, float* value )
390{

Callers 3

DragFloatValidLineWidthFunction · 0.85
DragFloatValid2Function · 0.85
DragFloatValid3Function · 0.85

Calls 2

clampFunction · 0.85
drawTooltipFunction · 0.85

Tested by

no test coverage detected