Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

StatusIndicator

Inherits: Node < Object

Application status indicator (also known as notification area icon, or tray icon).

Description

Displays an icon in the system tray when visible. The icon and tooltip can be customized, and the indicator also supports custom menu.

Note: Status indicator is implemented on macOS and Windows.

Properties

Texture2D

icon

NodePath

menu

NodePath("")

String

tooltip

""

bool

visible

true

Methods

Rect2

get_rect() const


Signals

pressed(mouse_button: int, mouse_position: Vector2i) 🔗

Emitted when the status indicator is pressed.


Property Descriptions

Texture2D icon 🔗

Status indicator icon.


NodePath menu = NodePath("") 🔗

Status indicator native popup menu. If this is set, the pressed signal is not emitted.

Note: Native popup is only supported if NativeMenu supports NativeMenu.FEATURE_POPUP_MENU feature.


String tooltip = "" 🔗

Status indicator tooltip.


bool visible = true 🔗

  • void set_visible(value: bool)

  • bool is_visible()

If true, the status indicator is visible.


Method Descriptions

Rect2 get_rect() const 🔗

Returns the status indicator rectangle in screen coordinates. If this status indicator is not visible, returns an empty Rect2.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.