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

Function IGFD_OpenDialog

external/ImGuiFileDialog/ImGuiFileDialog.cpp:4977–4995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4975}
4976
4977IGFD_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
4997IGFD_C_API bool IGFD_DisplayDialog(ImGuiFileDialog* vContextPtr, const char* vKey, ImGuiWindowFlags vFlags, ImVec2 vMinSize, ImVec2 vMaxSize) {
4998 if (vContextPtr != nullptr) {

Callers

nothing calls this directly

Calls 1

OpenDialogMethod · 0.80

Tested by

no test coverage detected