| 4910 | } |
| 4911 | |
| 4912 | IGFD_C_API void IGFD_OpenDialog( // open a standard dialog |
| 4913 | ImGuiFileDialog* vContextPtr, // ImGuiFileDialog context |
| 4914 | const char* vKey, // key dialog |
| 4915 | const char* vTitle, // title |
| 4916 | const char* vFilters, // filters/filter collections. set it to null for directory mode |
| 4917 | const IGFD_FileDialog_Config vConfig) { // path |
| 4918 | if (vContextPtr != nullptr) { |
| 4919 | IGFD::FileDialogConfig config; |
| 4920 | config.path = vConfig.path; |
| 4921 | config.fileName = vConfig.fileName; |
| 4922 | config.filePathName = vConfig.filePathName; |
| 4923 | config.countSelectionMax = vConfig.countSelectionMax; |
| 4924 | config.userDatas = vConfig.userDatas; |
| 4925 | config.flags = vConfig.flags; |
| 4926 | config.sidePane = vConfig.sidePane; |
| 4927 | config.sidePaneWidth = vConfig.sidePaneWidth; |
| 4928 | vContextPtr->OpenDialog(vKey, vTitle, vFilters, config); |
| 4929 | } |
| 4930 | } |
| 4931 | |
| 4932 | IGFD_C_API bool IGFD_DisplayDialog(ImGuiFileDialog* vContextPtr, const char* vKey, ImGuiWindowFlags vFlags, ImVec2 vMinSize, ImVec2 vMaxSize) { |
| 4933 | if (vContextPtr != nullptr) { |
nothing calls this directly
no test coverage detected