initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
43
doc/classes/StatusIndicator.xml
Normal file
43
doc/classes/StatusIndicator.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="StatusIndicator" inherits="Node" keywords="tray" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
Application status indicator (aka notification area icon).
|
||||
[b]Note:[/b] Status indicator is implemented on macOS and Windows.
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_rect" qualifiers="const">
|
||||
<return type="Rect2" />
|
||||
<description>
|
||||
Returns the status indicator rectangle in screen coordinates. If this status indicator is not visible, returns an empty [Rect2].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="icon" type="Texture2D" setter="set_icon" getter="get_icon">
|
||||
Status indicator icon.
|
||||
</member>
|
||||
<member name="menu" type="NodePath" setter="set_menu" getter="get_menu" default="NodePath("")">
|
||||
Status indicator native popup menu. If this is set, the [signal pressed] signal is not emitted.
|
||||
[b]Note:[/b] Native popup is only supported if [NativeMenu] supports [constant NativeMenu.FEATURE_POPUP_MENU] feature.
|
||||
</member>
|
||||
<member name="tooltip" type="String" setter="set_tooltip" getter="get_tooltip" default="""">
|
||||
Status indicator tooltip.
|
||||
</member>
|
||||
<member name="visible" type="bool" setter="set_visible" getter="is_visible" default="true">
|
||||
If [code]true[/code], the status indicator is visible.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="pressed">
|
||||
<param index="0" name="mouse_button" type="int" />
|
||||
<param index="1" name="mouse_position" type="Vector2i" />
|
||||
<description>
|
||||
Emitted when the status indicator is pressed.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
</class>
|
Reference in New Issue
Block a user