Ui

interface Ui

User interface API.

Functions

askUser
Link copied to clipboard
abstract fun askUser(caption: UiString, question: UiString, okLabel: UiString = FixedString("OK"), cancelLabel: UiString = FixedString("Cancel")): String?
Ask the user a question and request a text answer.
bringToFront
Link copied to clipboard
abstract fun bringToFront(closeAction: CloseAction = CloseAction.UserCloseable, initializer: UiElementContainer.Initializer.() -> UiElement)
Bring a UI to the front.
messageToUser
Link copied to clipboard
abstract fun messageToUser(caption: UiString, message: UiString, okLabel: UiString = FixedString("OK"))
Present a message to the user.
modalDialog
Link copied to clipboard
abstract fun <T> modalDialog(initializer: Dialog.Initializer<T>.() -> UiElement): T?
Display a modal dialog.