| 4975 | } |
| 4976 | |
| 4977 | IGFD_C_API void IGFD_OpenDialog( // open a standard dialog |
| 4978 | ImGuiFileDialog* vContextPtr, // ImGuiFileDialog context |
| 4979 | const char* vKey, // key dialog |
| 4980 | const char* vTitle, // title |
| 4981 | const char* vFilters, // filters/filter collections. set it to null for directory mode |
| 4982 | const IGFD_FileDialog_Config vConfig) { // path |
| 4983 | if (vContextPtr != nullptr) { |
| 4984 | IGFD::FileDialogConfig config; |
| 4985 | config.path = vConfig.path; |
| 4986 | config.fileName = vConfig.fileName; |
| 4987 | config.filePathName = vConfig.filePathName; |
| 4988 | config.countSelectionMax = vConfig.countSelectionMax; |
| 4989 | config.userDatas = vConfig.userDatas; |
| 4990 | config.flags = vConfig.flags; |
| 4991 | config.sidePane = vConfig.sidePane; |
| 4992 | config.sidePaneWidth = vConfig.sidePaneWidth; |
| 4993 | vContextPtr->OpenDialog(vKey, vTitle, vFilters, config); |
| 4994 | } |
| 4995 | } |
| 4996 | |
| 4997 | IGFD_C_API bool IGFD_DisplayDialog(ImGuiFileDialog* vContextPtr, const char* vKey, ImGuiWindowFlags vFlags, ImVec2 vMinSize, ImVec2 vMaxSize) { |
| 4998 | if (vContextPtr != nullptr) { |
nothing calls this directly
no test coverage detected