Signal1
Signal support.
Slider.swift:296class 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
Type members
Instance members
var dragEnded: Signal1
Emitted when dragging stops. If
valueChanged
is true,value
is different from the value when you started the dragging.var dragStarted: SimpleSignal
Emitted when dragging is started.
var editable: Bool
If
true
, the slider can be interacted with. Iffalse
, the value can be changed only by code.var scrollable: Bool
If
true
, the value can be changed using the mouse wheel.var tickCount: Int32
Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.
var ticksOnBorders: Bool
If
true
, the slider will display ticks for minimum and maximum values.
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 (_ valueChanged: Bool) -> ()
) -> 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:_:)