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

Function SaveWindowPosition

source/MRViewer/ImGuiHelpers.cpp:623–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623void SaveWindowPosition( const char* label, ImGuiWindow* window )
624{
625 if ( window )
626 {
627 auto& config = Config::instance();
628 auto dpJson = config.getJsonValue( "DialogPositions" );
629 serializeToJson( Vector2i{ int( window->Pos.x ), int( window->Pos.y ) }, dpJson[label] );
630 config.setJsonValue( "DialogPositions", dpJson );
631 }
632}
633
634void SaveWindowPosition( const char* label )
635{

Callers 2

drawTagInformation_Method · 0.85
BeginSavedWindowPosFunction · 0.85

Calls 4

instanceFunction · 0.85
getJsonValueMethod · 0.80
setJsonValueMethod · 0.80
serializeToJsonFunction · 0.70

Tested by

no test coverage detected