Signal1
Signal support.
ButtonGroup.swift:132class 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 allowUnpress: Bool
If
true
, it is possible to unpress all buttons in thisButtonGroup
.var pressed: Signal1
Emitted when one of the buttons of the group is pressed.
func getButtons(
) -> ObjectCollection<BaseButton> Returns an
GArray
ofButton
s who have this as theirButtonGroup
(seebuttonGroup
).func getPressedButton(
) -> BaseButton? Returns the current pressed button.
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 (_ button: BaseButton) -> ()
) -> 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:_:)