Package org.openrndr.dialogs
Functions
Link copied to clipboard
fun getDefaultPathForContext(programName: String = stackRootClassName(), contextID: String = "global"): String?
Content copied to clipboard
Returns the default path for a context
Link copied to clipboard
fun openFileDialog( programName: String = stackRootClassName(), contextID: String = "global", function: (File) -> Unit)
Content copied to clipboard
Creates a file dialog that can be used to open a single
fun openFileDialog( programName: String = stackRootClassName(), contextID: String = "global", supportedExtensions: List<Pair<String, List<String>>>, function: (File) -> Unit)
Content copied to clipboard
fun openFileDialog( programName: String = stackRootClassName(), contextID: String = "global", supportedExtensions: List<String>, function: (File) -> Unit)
Content copied to clipboard
Creates a file dialog that can be used to open a single file
Link copied to clipboard
fun openFilesDialog( programName: String = stackRootClassName(), contextID: String = "global", function: (List<File>) -> Unit)
Content copied to clipboard
fun openFilesDialog( programName: String = stackRootClassName(), contextID: String = "global", supportedExtensions: List<Pair<String, List<String>>>, function: (List<File>) -> Unit)
Content copied to clipboard
fun openFilesDialog( programName: String = stackRootClassName(), contextID: String = "global", supportedExtensions: List<String>, function: (List<File>) -> Unit)
Content copied to clipboard
Creates a file dialog that can be used to open multiple files
Link copied to clipboard
fun openFolderDialog( programName: String = stackRootClassName(), contextID: String = "global", function: (File) -> Unit)
Content copied to clipboard
Creates a file dialog that can be used to open multiple files
Link copied to clipboard
fun saveFileDialog( programName: String = stackRootClassName(), contextID: String = "global", suggestedFilename: String? = null, supportedExtensions: List<Pair<String, List<String>>> = emptyList(), function: (File) -> Unit)
Content copied to clipboard
fun saveFileDialog( programName: String = stackRootClassName(), contextID: String = "global", suggestedFilename: String? = null, supportedExtensions: List<String>, function: (File) -> Unit)
Content copied to clipboard
Creates a file dialog that can be used to save a single file files
Link copied to clipboard
fun setDefaultPathForContext( programName: String = stackRootClassName(), contextID: String = "global", file: File)
Content copied to clipboard
Set the default path for a context This is an internal function but it can be used to set a default path before calling any of the file dialog functions