MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / drawToolbar

Method drawToolbar

Examples/SCExample/HotReloadSystem.h:381–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379 {
380 (void)system.load(library.definition.identity.identifier.view());
381 }
382 if (library.dynamicLibrary.isValid())
383 {
384 ImGui::SameLine();
385 if (ImGui::Button("Unload"))
386 {
387 system.unload(library.definition.identity.identifier.view());
388 }
389 }
390 ImGui::PopID();
391 }
392 ImGui::EndTable();
393 }
394 return Result(true);
395 }
396
397 [[nodiscard]] bool drawToolbar()
398 {
399 bool res = false;
400 for (size_t idx = 0; idx < system.registry.getNumberOfEntries(); ++idx)
401 {
402 const PluginDynamicLibrary& library = system.registry.getPluginDynamicLibraryAt(idx);
403 ImGui::SameLine();
404
405 SmallString<256> pluginUTF8 = StringEncoding::Utf8;
406 (void)StringConverter::appendEncodingTo(StringEncoding::Utf8, library.definition.identity.name.view(),

Callers

nothing calls this directly

Calls 5

appendEncodingToFunction · 0.85
getNumberOfEntriesMethod · 0.80
viewMethod · 0.45
isValidMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected