Package-level declarations

Types

Link copied to clipboard
class Item(var text: String = "Empty Item", var icon: Painter? = null, var enabled: Boolean = true, var mnemonic: Char? = null, var shortcut: KeyShortcut? = null, var onClick: OnClick = {})

Represents an item with various properties and actions.

Link copied to clipboard
typealias Menu = @Composable MenuScope.() -> Unit
Link copied to clipboard
typealias OnAction = () -> Unit
Link copied to clipboard
typealias OnClick = () -> Unit
Link copied to clipboard
class Tray(var icon: Painter = ColorPainter(Gray), var state: TrayState? = null, var tooltip: String? = null, var onAction: OnAction = {}, var menu: Menu = {})

A factory class for creating and configuring a tray icon.

Functions

Link copied to clipboard
@Composable
fun item(block: Item.() -> Unit): <Error class: unknown class>
Link copied to clipboard
@Composable
fun ApplicationScope.tray(block: Tray.() -> Unit)

Creates a tray with the specified properties.