MCPcopy Create free account
hub / github.com/cinder/Cinder / getOpenFilePath

Function getOpenFilePath

include/cinder/app/AppBase.h:578–578  ·  view source on GitHub ↗

Presents the user with a file-open dialog and returns the selected file path. The dialog optionally begins at the path \a initialPath and can be limited to allow selection of files ending in the extensions enumerated in \a extensions. If the active app is in full-screen mode it will temporarily switch to windowed-mode to present the dialog. \return the selected file path or an empty string if th

Source from the content-addressed store, hash-verified

576 If the active app is in full-screen mode it will temporarily switch to windowed-mode to present the dialog.
577 \return the selected file path or an empty string if the user cancelled. **/
578inline fs::path getOpenFilePath( const fs::path &initialPath = fs::path(), std::vector<std::string> extensions = std::vector<std::string>() ) { return AppBase::get()->getOpenFilePath( initialPath, extensions ); }
579
580//! Presents the user with a file-save dialog and returns the selected file path.
581/** The dialog optionally begins at the path \a initialPath and can be limited to allow selection of files ending in the extensions enumerated in \a extensions.

Callers 15

openImageDialogMethod · 0.85
setupMethod · 0.85
keyDownMethod · 0.85
setupMethod · 0.85
keyDownMethod · 0.85
keyDownMethod · 0.85
setupMethod · 0.85
keyDownMethod · 0.85
openImageDialogMethod · 0.85
setupMethod · 0.85
keyDownMethod · 0.85
openFileMethod · 0.85

Calls 2

getFunction · 0.50
getOpenFilePathMethod · 0.45

Tested by 6

keyDownMethod · 0.68
setupMethod · 0.68
keyDownMethod · 0.68
keyDownMethod · 0.68
setupMethod · 0.68
drawMethod · 0.68