Tray

open external class Tray(source)

Inheritors

Constructors

Link copied to clipboard
constructor(image: NativeImage, guid: String = definedExternally)

Tray

constructor(image: String, guid: String = definedExternally)

Tray

Properties

Link copied to clipboard
val balloonClickEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val balloonClosedEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val balloonShowEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val clickEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Rectangle, Point>>
Link copied to clipboard
val doubleClickEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Rectangle>>
Link copied to clipboard
val dragEndEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val dragEnterEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val dragLeaveEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val dropEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val dropFilesEvent: <Error class: unknown class><<Error class: unknown class><Event<*>, <Error class: unknown class><String>>>
Link copied to clipboard
val dropTextEvent: <Error class: unknown class><<Error class: unknown class><Event<*>, String>>
Link copied to clipboard
val middleClickEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Rectangle>>
Link copied to clipboard
val mouseDownEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Point>>
Link copied to clipboard
val mouseEnterEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Point>>
Link copied to clipboard
val mouseLeaveEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Point>>
Link copied to clipboard
val mouseMoveEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Point>>
Link copied to clipboard
val mouseUpEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Point>>
Link copied to clipboard
val rightClickEvent: <Error class: unknown class><<Error class: unknown class><KeyboardEvent, Rectangle>>

Functions

Link copied to clipboard

Closes an open context menu, as set by tray.setContextMenu().

Link copied to clipboard
fun destroy()

Destroys the tray icon immediately.

Link copied to clipboard

Displays a tray balloon.

Link copied to clipboard
fun focus()

Returns focus to the taskbar notification area. Notification area icons should use this message when they have completed their UI operation. For example, if the icon displays a shortcut menu, but the user presses ESC to cancel it, use tray.focus() to return focus to the notification area.

Link copied to clipboard

The bounds of this tray icon as Object.

Link copied to clipboard

Whether double click events will be ignored.

Link copied to clipboard

the title displayed next to the tray icon in the status bar

Link copied to clipboard

Whether the tray icon is destroyed.

Link copied to clipboard
fun popUpContextMenu(menu: Menu = definedExternally, position: Point = definedExternally)

Pops up the context menu of the tray icon. When menu is passed, the menu will be shown instead of the tray icon's context menu.

Link copied to clipboard

Removes a tray balloon.

Link copied to clipboard
fun setContextMenu(menu: Menu?)

Sets the context menu for this icon.

Link copied to clipboard

Sets the option to ignore double click events. Ignoring these events allows you to detect every individual click of the tray icon.

Link copied to clipboard
fun setImage(image: NativeImage)
fun setImage(image: String)

Sets the image associated with this tray icon.

Link copied to clipboard

Sets the image associated with this tray icon when pressed on macOS.

Link copied to clipboard
fun setTitle(title: String, options: TitleOptions = definedExternally)

Sets the title displayed next to the tray icon in the status bar (Support ANSI colors).

Link copied to clipboard
fun setToolTip(toolTip: String)

Sets the hover text for this tray icon.