StatusIndicator
Description
Section titled “Description”Application status indicator (aka notification area icon).
Note: Status indicator is implemented on macOS and Windows.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Texture2D | icon |
|
| EntityPath | menu |
EntityPath("") |
| String | tooltip |
"" |
| bool | visible |
true |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| Rect2 | get_rect() const |
Signals
Section titled “Signals”pressed
pressed(mouse_button: int, mouse_position: Vector2i)
Emitted when the status indicator is pressed.
Property descriptions
Section titled “Property descriptions”icon
Texture2D icon
Status indicator icon.
menu
EntityPath menu = EntityPath("")
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.
tooltip
String tooltip = ""
Status indicator tooltip.
visible
bool visible = true
If true, the status indicator is visible.
Method descriptions
Section titled “Method descriptions”get_rect
Rect2 get_rect() const
Returns the status indicator rectangle in screen coordinates. If this status indicator is not visible, returns an empty Rect2.
