Signal1
Signal support.
ColorPickerButton.swift:204class Signal1
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 (8) members.
Type members
Instance members
var color: Color
The currently selected color.
var colorChanged: Signal1
Emitted when the color changes.
var editAlpha: Bool
If
true
, the alpha channel in the displayedColorPicker
will be visible.var pickerCreated: SimpleSignal
Emitted when the
ColorPicker
is created (the button is pressed for the first time).var popupClosed: SimpleSignal
Emitted when the
ColorPicker
is closed.func getPicker(
) -> ColorPicker? Returns the
ColorPicker
that this node toggles.func getPopup(
) -> PopupPanel? Returns the control’s
PopupPanel
which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden.
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 (_ color: Color) -> ()
) -> 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:_:)