FilenameCompleter

open class FilenameCompleter(pointer: <Error class: unknown class><<Error class: unknown class>>)

Completes partial file and directory names given a partial string by looking in the file system for clues. Can return a list of possible completion strings for widget implementations.

Constructors

Link copied to clipboard
constructor()

Creates a new filename completer.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioFilenameCompleterPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectGotCompletionData(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the file name completion information comes available.

Link copied to clipboard
open fun getCompletions(initialText: String): List<String>

Gets an array of completion strings for a given initial text.

Link copied to clipboard
open fun getCompletionSuffix(initialText: String): String?

Obtains a completion for @initial_text from @completer.

Link copied to clipboard
open fun setDirsOnly(dirsOnly: Boolean)

If @dirs_only is true, @completer will only complete directory names, and not file names.