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

Function IGFD_OpenDialog

ImGuiFileDialog.cpp:4912–4930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4910}
4911
4912IGFD_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
4932IGFD_C_API bool IGFD_DisplayDialog(ImGuiFileDialog* vContextPtr, const char* vKey, ImGuiWindowFlags vFlags, ImVec2 vMinSize, ImVec2 vMaxSize) {
4933 if (vContextPtr != nullptr) {

Callers

nothing calls this directly

Calls 1

OpenDialogMethod · 0.80

Tested by

no test coverage detected