Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
nodeSelected
Emitted when the GraphElement is selected.
GraphElement.swift:356var nodeSelected: SimpleSignal { get }
To connect to this signal, reference this property and call the
connect
method with the method you want to invoke
Example:
obj.nodeSelected.connect {
print ("caught signal")
}
Other members in extension
Types
class Signal1
Signal support.
class Signal2
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 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.