Signal2
Signal support.
GraphElement.swift:495class Signal2
Use the connect(flags:_:)
method to connect to the signal on the container object, and disconnect(_:)
to drop the connection.
You can also await the emitted
property for waiting for a single emission of the signal.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (14) members.
Types
class Signal1
Signal support.
Type members
Instance members
var deleteRequest: SimpleSignal
Emitted when removing the GraphElement is requested.
var draggable: Bool
If
true
, the user can drag the GraphElement.var dragged: Signal2
Emitted when the GraphElement is dragged.
var nodeDeselected: SimpleSignal
Emitted when the GraphElement is deselected.
var nodeSelected: SimpleSignal
Emitted when the GraphElement is selected.
var positionOffset: Vector2
The offset of the GraphElement, relative to the scroll offset of the
GraphEdit
.var positionOffsetChanged: SimpleSignal
Emitted when the GraphElement is moved.
var raiseRequest: SimpleSignal
Emitted when displaying the GraphElement over other ones is requested. Happens on focusing (clicking into) the GraphElement.
var resizable: Bool
If
true
, the user can resize the GraphElement.var resizeRequest: Signal1
Emitted when resizing the GraphElement is requested. Happens on dragging the resizer handle (see
resizable
).var selectable: Bool
If
true
, the user can select the GraphElement.var selected: Bool
If
true
, the GraphElement is selected.
Citizens in SwiftGodot
Instance members
var emitted: Void
You can await this property to wait for the signal to be emitted once
func connect(flags: Object.ConnectFlags, @escaping (_ from: Vector2, _ to: Vector2) -> ()
) -> Object Connects the signal to the specified callback
func disconnect(Object
) Disconnects a signal that was previously connected, the return value from calling
connect(flags:_:)