2020-02-22 21:59:09 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<class name="Signal" version="4.0">
|
|
|
|
<brief_description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Class representing a signal defined in an object.
|
2020-02-22 21:59:09 +08:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="Signal">
|
|
|
|
<return type="Signal">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="object" type="Object">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="signal_name" type="StringName">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Creates a new signal named [code]signal_name[/code] in the given object.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="connect">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="callable" type="Callable">
|
|
|
|
</argument>
|
2020-03-09 17:51:17 +08:00
|
|
|
<argument index="1" name="binds" type="Array" default="[ ]">
|
2020-02-22 21:59:09 +08:00
|
|
|
</argument>
|
|
|
|
<argument index="2" name="flags" type="int" default="0">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Connects this signal to the specified [Callable], optionally providing binds and connection flags.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="disconnect">
|
2020-03-18 16:14:39 +08:00
|
|
|
<return type="Variant">
|
2020-02-22 21:59:09 +08:00
|
|
|
</return>
|
|
|
|
<argument index="0" name="callable" type="Callable">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Disconnects this signal from the specified [Callable].
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="emit" qualifiers="vararg">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Emits this signal to all connected objects.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_connections">
|
|
|
|
<return type="Array">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Returns the list of [Callable]s connected to this signal.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_name">
|
|
|
|
<return type="StringName">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Returns the name of this signal.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_object">
|
|
|
|
<return type="Object">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Returns the object emitting this signal.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_object_id">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Returns the ID of the object emitting this signal (see [method Object.get_instance_id]).
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_connected">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="callable" type="Callable">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-03-04 02:21:21 +08:00
|
|
|
Returns [code]true[/code] if the specified [Callable] is connected to this signal.
|
2020-02-22 21:59:09 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_null">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|