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

Method setUserScaling

source/MRViewer/ImGuiMenu.cpp:844–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842}
843
844void ImGuiMenu::setUserScaling( float scaling )
845{
846 scaling = std::clamp( scaling, 0.5f, 4.0f );
847 if ( scaling == userScaling_ )
848 return;
849 userScaling_ = scaling;
850 CommandLoop::appendCommand( [&] ()
851 {
852 auto scaling = menuScaling();
853 getViewerInstance().postRescale( scaling, scaling );
854 } );
855}
856
857ImGuiContext* ImGuiMenu::getCurrentContext() const
858{

Callers 3

resetSettingsMethod · 0.80
loadSettingsMethod · 0.80
drawApplicationTab_Method · 0.80

Calls 2

clampFunction · 0.85
postRescaleMethod · 0.80

Tested by

no test coverage detected