Package org.gtk.dsl.gio

Types

SubmenuMenu
Link copied to clipboard
class SubmenuMenu : Menu

Functions

actionEntry
Link copied to clipboard
fun actionEntry(name: String, onActivate: ActionMapEntryFunction = null, parameterType: String? = null, state: String? = null, changeState: ActionMapEntryFunction = null): ActionEntry
addSimpleAction
Link copied to clipboard
fun ActionMap.addSimpleAction(name: String, action: SimpleAction.() -> Unit)
booleanActionEntry
Link copied to clipboard
fun booleanActionEntry(name: String, onActivate: ActionMapEntryFunction = null, state: Boolean? = null, changeState: ActionMapEntryFunction = null): ActionEntry
disable
Link copied to clipboard
fun SimpleAction.disable()
enable
Link copied to clipboard
fun SimpleAction.enable()
item
Link copied to clipboard
fun SubmenuMenu.item(label: String, detailedAction: String? = null, builder: MenuItem.() -> Unit = {}): MenuItem
lookUpSimpleAction
Link copied to clipboard
inline fun ActionMap.lookUpSimpleAction(actionName: String, editor: SimpleAction.() -> Unit): SimpleAction?

kotlinx-gtk 23 / 03 / 2021

menu
Link copied to clipboard
fun menu(builder: Menu.() -> Unit): Menu
menuBar
Link copied to clipboard
fun Application.menuBar(menuBuilder: Menu.() -> Unit): Menu

kotlinx-gtk 28 / 03 / 2021

notification
Link copied to clipboard
inline fun notification(title: String, body: String = "", icon: Icon? = null, priority: Notification.Priority = Notification.Priority.NORMAL, builder: Notification.() -> Unit = {}): Notification

kotlinx-gtk 14 / 04 / 2021

onCreateUI
Link copied to clipboard
inline fun <T : Application> T.onCreateUI(crossinline uiBuilder: T.() -> Unit)

Invokes uiBuilder when Application.onActivate occurs

onNameLost
Link copied to clipboard
inline fun Application.onNameLost(noinline onNameLost: Application.() -> Boolean)
onShutdown
Link copied to clipboard
inline fun Application.onShutdown(noinline onShutdown: Application.() -> Unit)
onStartup
Link copied to clipboard
inline fun Application.onStartup(noinline onStartup: Application.() -> Unit)
section
Link copied to clipboard
fun SubmenuMenu.section(label: String? = null, builder: MenuItem.Section.() -> Unit = {}, content: SubmenuMenu.() -> Unit = {}): MenuItem.Section
sendNotification
Link copied to clipboard
inline fun Application.sendNotification(title: String, id: String? = null, body: String = "", icon: Icon? = null, priority: Notification.Priority = Notification.Priority.NORMAL, builder: Notification.() -> Unit = {}): Notification
simpleAction
Link copied to clipboard
fun simpleAction(name: String, action: SimpleAction.() -> Unit): SimpleAction
stringActionEntry
Link copied to clipboard
fun stringActionEntry(name: String, onActivate: ActionMapEntryFunction = null, state: String? = null, changeState: ActionMapEntryFunction = null): ActionEntry
submenu
Link copied to clipboard
fun Menu.submenu(label: String?, builder: MenuItem.Submenu.() -> Unit = {}, content: SubmenuMenu.() -> Unit = {}): MenuItem.Submenu