Signal2
Signal support.
FileSystemDock.swift:205class 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 (19) members.
Types
class Signal1
Signal support.
class Signal3
Signal support.
class Signal4
Signal support.
class Signal5
Signal support.
class Signal6
Signal support.
class Signal7
Signal support.
Type members
Instance members
var displayModeChanged: SimpleSignal
Emitted when the user switches file display mode or split mode.
var fileRemoved: Signal4
Emitted when the given
file
was removed.var filesMoved: Signal6
Emitted when a file is moved from
oldFile
path tonewFile
path.var folderColorChanged: SimpleSignal
Emitted when folders change color.
var folderMoved: Signal7
Emitted when a folder is moved from
oldFolder
path tonewFolder
path.var folderRemoved: Signal5
Emitted when the given
folder
was removed.var inherit: Signal1
Emitted when a new scene is created that inherits the scene at
file
path.var instantiate: Signal2
Emitted when the given scenes are being instantiated in the editor.
var resourceRemoved: Signal3
Emitted when an external
resource
had its file removed.func addResourceTooltipPlugin(EditorResourceTooltipPlugin?
) Registers a new
EditorResourceTooltipPlugin
.func removeResourceTooltipPlugin(EditorResourceTooltipPlugin?
) Removes an
EditorResourceTooltipPlugin
. Fails if the plugin wasn’t previously added.
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 (_ files: PackedStringArray) -> ()
) -> 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:_:)