MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / IGFD_AddPlace

Function IGFD_AddPlace

ImGuiFileDialog.cpp:5222–5232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5220}
5221
5222IGFD_C_API bool IGFD_AddPlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName, const char* vPlacePath, bool vCanBeSaved, const char* vIconText) {
5223 if (vContextPtr != nullptr) {
5224 auto group_ptr = vContextPtr->GetPlacesGroupPtr(vGroupName);
5225 if (group_ptr != nullptr) {
5226 IGFD::FileStyle style;
5227 style.icon = vIconText;
5228 return group_ptr->AddPlace(vPlaceName, vPlacePath, vCanBeSaved, style);
5229 }
5230 }
5231 return false;
5232}
5233
5234IGFD_C_API bool IGFD_RemovePlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName) {
5235 if (vContextPtr != nullptr) {

Callers

nothing calls this directly

Calls 2

GetPlacesGroupPtrMethod · 0.80
AddPlaceMethod · 0.80

Tested by

no test coverage detected