StargateMenu

class StargateMenu(items: List<StargateMenuItem>, onMenuOpened: () -> Unit? = null, onMenuClosed: () -> Unit? = null) : Dbusmenu(source)

Server-side implementation of the com.canonical.dbusmenu interface. Export this object at DBUS_MENU_OBJECT_PATH alongside the StatusNotifierItem, and return DBUS_MENU_OBJECT_PATH from StargateStatusNotifierItem.getMenu so the tray host can find it.

Constructors

Link copied to clipboard
constructor(items: List<StargateMenuItem>, onMenuOpened: () -> Unit? = null, onMenuClosed: () -> Unit? = null)

Properties

Link copied to clipboard
open val isRemote: Boolean
Link copied to clipboard
open override val objectPath: String
Link copied to clipboard
open override val status: String
Link copied to clipboard
open override val version: UInt32

Functions

Link copied to clipboard
open override fun AboutToShow(id: Int): Boolean
Link copied to clipboard
open override fun Event(id: Int, eventId: String, data: Variant<*>, timestamp: UInt32)
Link copied to clipboard
open override fun GetGroupProperties(ids: List<Int>, propertyNames: List<String>): List<GetGroupPropertiesPropertiesStruct>
Link copied to clipboard
open override fun GetLayout(parentId: Int, recursionDepth: Int, propertyNames: List<String>): GetLayoutTuple<UInt32, GetLayoutLayoutStruct>
Link copied to clipboard
open override fun getObjectPath(): String
Link copied to clipboard
open override fun GetProperty(id: Int, name: String): Variant<*>
Link copied to clipboard
open override fun getStatus(): String
Link copied to clipboard
open override fun getVersion(): UInt32