MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / GetTabName

Method GetTabName

imgui_tiny_app/imgui/imgui_demo.cpp:10675–10678  ·  view source on GitHub ↗

As we allow to change document name, we append a never-changing document ID so tabs are stable

Source from the content-addressed store, hash-verified

10673
10674 // As we allow to change document name, we append a never-changing document ID so tabs are stable
10675 void GetTabName(MyDocument* doc, char* out_buf, size_t out_buf_size)
10676 {
10677 snprintf(out_buf, out_buf_size, "%s###doc%d", doc->Name, doc->UID);
10678 }
10679
10680 // Display placeholder contents for the Document
10681 void DisplayDocContents(MyDocument* doc)

Callers 1

ShowExampleAppDocumentsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected