import Gtk extension WidgetView where Target: Gtk.TextView { /// Applies the `.inline` style class. /// /// Lets the view sit inside a card while following its styles. Cannot be used with `GtkSourceView`. /// /// - Parameter enabled: Whether the style class is applied. /// - Returns: A copy of this view with the modifier applied. public func inline(_ enabled: Bool = true) -> Self { styleClass("inline", enabled) } /// Applies the `.inline` style class. /// /// Lets the view sit inside a card while following its styles. Cannot be used with `GtkSourceView`. /// /// - Parameter enabled: A binding that controls whether the class is applied. /// - Returns: A copy of this view with the modifier applied. public func inline(_ enabled: Binding) -> Self { styleClass("inline", enabled) } }