Table of Contents

Class StatusIndicator

Application status indicator (aka notification area icon).

Note: Status indicator is implemented on macOS and Windows.

Inheritance
StatusIndicator

Properties

icon

Status indicator icon.

var icon : Texture2D

Property Value

Texture2D

Remarks

menu

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

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

var menu : NodePath = NodePath("")

Property Value

NodePath

Remarks

tooltip

Status indicator tooltip.

var tooltip : String = ""

Property Value

String

Remarks

visible

If true, the status indicator is visible.

var visible : bool = true

Property Value

bool

Remarks

  • void set_visible(bool value)
  • bool is_visible

Methods

get_rect

Qualifiers: const

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

Rect2 get_rect

Events

pressed(int, Vector2i)

Emitted when the status indicator is pressed.

signal pressed(int mouse_button, Vector2i mouse_position)

Parameters

mouse_button int
mouse_position Vector2i