0.2.0-dev Download ZIP
43 lines ·1.7 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="StatusIndicator" inherits="Node" api_type="core" keywords="tray" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Application status indicator (aka notification area icon). |
| 5 | [b]Note:[/b] Status indicator is implemented on macOS and Windows. |
| 6 | </brief_description> |
| 7 | <description> |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_rect" qualifiers="const"> |
| 13 | <return type="Rect2" /> |
| 14 | <description> |
| 15 | Returns the status indicator rectangle in screen coordinates. If this status indicator is not visible, returns an empty [Rect2]. |
| 16 | </description> |
| 17 | </method> |
| 18 | </methods> |
| 19 | <members> |
| 20 | <member name="icon" type="Texture2D" setter="set_icon" getter="get_icon"> |
| 21 | Status indicator icon. |
| 22 | </member> |
| 23 | <member name="menu" type="NodePath" setter="set_menu" getter="get_menu" default="NodePath("")"> |
| 24 | Status indicator native popup menu. If this is set, the [signal pressed] signal is not emitted. |
| 25 | [b]Note:[/b] Native popup is only supported if [NativeMenu] supports [constant NativeMenu.FEATURE_POPUP_MENU] feature. |
| 26 | </member> |
| 27 | <member name="tooltip" type="String" setter="set_tooltip" getter="get_tooltip" default=""""> |
| 28 | Status indicator tooltip. |
| 29 | </member> |
| 30 | <member name="visible" type="bool" setter="set_visible" getter="is_visible" default="true"> |
| 31 | If [code]true[/code], the status indicator is visible. |
| 32 | </member> |
| 33 | </members> |
| 34 | <signals> |
| 35 | <signal name="pressed"> |
| 36 | <param index="0" name="mouse_button" type="int" /> |
| 37 | <param index="1" name="mouse_position" type="Vector2i" /> |
| 38 | <description> |
| 39 | Emitted when the status indicator is pressed. |
| 40 | </description> |
| 41 | </signal> |
| 42 | </signals> |
| 43 | </class> |