StargateMenuItem

sealed class StargateMenuItem(source)

Represents an item in a DBusMenu context menu.

Inheritors

Types

Link copied to clipboard
data class Action(val id: Int, val label: String, val enabled: Boolean = true, val onClick: (tokenSupplier: () -> String?) -> Unit) : StargateMenuItem

A clickable menu entry with a text label. onClick is invoked on the D-Bus thread with a tokenSupplier that lazily consumes the pending XDG activation token. Call tokenSupplier from the GTK main thread (e.g. inside GLib.idleAdd) to guarantee the token has been set by a concurrent org.kde.StatusNotifierItem.ProvideXdgActivationToken call.

Link copied to clipboard
data class Separator(val id: Int) : StargateMenuItem

A visual separator between groups of items.

Properties

Link copied to clipboard
abstract val id: Int

Functions

Link copied to clipboard
Link copied to clipboard