Package org.openrndr.dialogs

Functions

Link copied to clipboard
fun getDefaultPathForContext(programName: String = stackRootClassName(), contextID: String = "global"): String?

Returns the default path for a context

Link copied to clipboard
fun openFileDialog(    programName: String = stackRootClassName(),     contextID: String = "global",     function: (File) -> Unit)

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)
@JvmName(name = "openFileDialogSimple")
fun openFileDialog(    programName: String = stackRootClassName(),     contextID: String = "global",     supportedExtensions: List<String>,     function: (File) -> Unit)

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)
fun openFilesDialog(    programName: String = stackRootClassName(),     contextID: String = "global",     supportedExtensions: List<Pair<String, List<String>>>,     function: (List<File>) -> Unit)
@JvmName(name = "openFilesDialogSimple")
fun openFilesDialog(    programName: String = stackRootClassName(),     contextID: String = "global",     supportedExtensions: List<String>,     function: (List<File>) -> Unit)

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)

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)
@JvmName(name = "saveFileDialogSimple")
fun saveFileDialog(    programName: String = stackRootClassName(),     contextID: String = "global",     suggestedFilename: String? = null,     supportedExtensions: List<String>,     function: (File) -> Unit)

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)

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