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

Method ImGuiBeginWindow_

source/MRViewer/MRStatePlugin.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool StateBasePlugin::ImGuiBeginWindow_( ImGui::CustomStatePluginWindowParameters params )
133{
134 if ( !params.collapsed )
135 params.collapsed = &dialogIsCollapsed_;
136
137 if ( !params.helpBtnFn )
138 {
139 auto it = RibbonSchemaHolder::schema().items.find( name() );
140 if ( it != RibbonSchemaHolder::schema().items.end() && !it->second.helpLink.empty() )
141 params.helpBtnFn = [&] () { OpenLink( it->second.helpLink ); };
142 }
143
144 return BeginCustomStatePlugin( uiName().c_str(), &dialogIsOpen_, params );
145}
146
147std::string StateBasePlugin::getTooltip() const
148{

Callers

nothing calls this directly

Calls 6

OpenLinkFunction · 0.85
BeginCustomStatePluginFunction · 0.85
nameFunction · 0.50
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected