MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / IGFD_AddPlace

Function IGFD_AddPlace

external/ImGuiFileDialog/ImGuiFileDialog.cpp:5287–5297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5285}
5286
5287IGFD_C_API bool IGFD_AddPlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName, const char* vPlacePath, bool vCanBeSaved, const char* vIconText) {
5288 if (vContextPtr != nullptr) {
5289 auto group_ptr = vContextPtr->GetPlacesGroupPtr(vGroupName);
5290 if (group_ptr != nullptr) {
5291 IGFD::FileStyle style;
5292 style.icon = vIconText;
5293 return group_ptr->AddPlace(vPlaceName, vPlacePath, vCanBeSaved, style);
5294 }
5295 }
5296 return false;
5297}
5298
5299IGFD_C_API bool IGFD_RemovePlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName) {
5300 if (vContextPtr != nullptr) {

Callers

nothing calls this directly

Calls 2

GetPlacesGroupPtrMethod · 0.80
AddPlaceMethod · 0.80

Tested by

no test coverage detected