24 lines
No EOL
870 B
Swift
24 lines
No EOL
870 B
Swift
import Gtk
|
|
|
|
extension WidgetView where Target: Gtk.CheckButton {
|
|
/// Applies the `.selection-mode` style class.
|
|
///
|
|
/// Larger, round check button, for selecting items from a list or grid.
|
|
///
|
|
/// - Parameter enabled: Whether the style class is applied.
|
|
/// - Returns: A copy of this view with the modifier applied.
|
|
public func selectionMode(_ enabled: Bool = true) -> Self {
|
|
styleClass("selection-mode", enabled)
|
|
}
|
|
|
|
/// Applies the `.selection-mode` style class.
|
|
///
|
|
/// Larger, round check button, for selecting items from a list or grid.
|
|
///
|
|
/// - Parameter enabled: A binding that controls whether the class is applied.
|
|
/// - Returns: A copy of this view with the modifier applied.
|
|
public func selectionMode(_ enabled: Binding<Bool>) -> Self {
|
|
styleClass("selection-mode", enabled)
|
|
}
|
|
|
|
} |