RadioGroup
public class RadioGroup : View
Undocumented
-
The index of the currently selected item, or nil if none, to be called by the user invoking this method does not invoke the selection changed callback.
Declaration
Swift
public var selected: Int? { get set }
-
The labels displayed for this radio group
Declaration
Swift
public private(set) var radioLabels: [String] { get }
-
The orientation in which this radio group is shown
Declaration
Swift
public private(set) var orientation: Orientation { get }
-
Callback invoked when the selection has changed, it passes the previous selection value, and the new selection value
Declaration
Swift
public var selectionChanged: ((_ source: RadioGroup, _ previousSelection: Int?, _ newSelection: Int?) -> ())?
-
Initializes a new instance of the
RadioGroup
Declaration
Swift
public init(labels: [String], selected: Int? = 0, orientation: Orientation = .vertical)
Parameters
labels
The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.
selected
The index of the item to be selected, the value is clamped to the number of items, can be nil if no value should be selected by default
-
Declaration
Swift
public override func positionCursor()
-
Declaration
Swift
public override func processColdKey(event: KeyEvent) -> Bool
-
Declaration
Swift
public override func processKey(event: KeyEvent) -> Bool
-
Declaration
Swift
public override func mouseEvent(event: MouseEvent) -> Bool
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get }