Do not compare bindings before updating
This commit is contained in:
parent
963a02b1e1
commit
e7c81dba1d
@ -100,7 +100,9 @@ public class AdwaitaApp: AppStorage {
|
|||||||
g_action_map_add_action(.init(pointer), action)
|
g_action_map_add_action(.init(pointer), action)
|
||||||
signals[id] = data
|
signals[id] = data
|
||||||
}
|
}
|
||||||
gtk_application_set_accels_for_action(pointer, (window == nil ? "app." : "win.") + id, [shortcut].cArray)
|
let array = [shortcut].cArray
|
||||||
|
gtk_application_set_accels_for_action(pointer, (window == nil ? "app." : "win.") + id, array)
|
||||||
|
array?.deallocate()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove a keyboard shortcut from the application.
|
/// Remove a keyboard shortcut from the application.
|
||||||
|
|||||||
@ -86,7 +86,7 @@ public struct AboutDialog: AdwaitaWidget {
|
|||||||
type: Data.Type
|
type: Data.Type
|
||||||
) where Data: ViewRenderData {
|
) where Data: ViewRenderData {
|
||||||
child.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
|
child.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
|
||||||
guard updateProperties, (storage.previousState as? Self)?.visible != visible else {
|
guard updateProperties else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if visible {
|
if visible {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ActionRow.swift
|
// ActionRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -40,10 +40,16 @@ import LevenshteinTransformations
|
|||||||
/// It contains subnodes `label.title` and `label.subtitle` representing
|
/// It contains subnodes `label.title` and `label.subtitle` representing
|
||||||
/// respectively the title label and subtitle label.
|
/// respectively the title label and subtitle label.
|
||||||
///
|
///
|
||||||
/// `AdwActionRow` can use the
|
/// ## Style classes
|
||||||
/// [`.property`](style-classes.html#property-rows) style class to emphasize
|
///
|
||||||
/// the row subtitle instead of the row title, which is useful for
|
/// `AdwActionRow` can use the [`.property`](style-classes.html#property-rows)
|
||||||
/// displaying read-only properties.
|
/// style class to emphasize the row subtitle instead of the row title, which is
|
||||||
|
/// useful for displaying read-only properties.
|
||||||
|
///
|
||||||
|
/// <picture><source srcset="property-row-dark.png" media="(prefers-color-scheme: dark)"><img src="property-row.png" alt="property-row"></picture>
|
||||||
|
///
|
||||||
|
/// When used together with the `.monospace` style class, only the subtitle
|
||||||
|
/// becomes monospace, not the title or any extra widgets.
|
||||||
public struct ActionRow: AdwaitaWidget {
|
public struct ActionRow: AdwaitaWidget {
|
||||||
|
|
||||||
/// Additional update functions for type extensions.
|
/// Additional update functions for type extensions.
|
||||||
@ -226,7 +232,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatableWidget = activatableWidget
|
newSelf.activatableWidget = activatableWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +242,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func subtitle(_ subtitle: String?) -> Self {
|
public func subtitle(_ subtitle: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +252,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleLines = subtitleLines
|
newSelf.subtitleLines = subtitleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +261,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleSelectable = subtitleSelectable
|
newSelf.subtitleSelectable = subtitleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +271,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +280,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func titleLines(_ titleLines: Int?) -> Self {
|
public func titleLines(_ titleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleLines = titleLines
|
newSelf.titleLines = titleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,7 +289,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,7 +300,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +307,6 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// AspectFrame.swift
|
// AspectFrame.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -15,7 +15,7 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// `GtkAspectFrame` uses a CSS node with name `frame`.
|
/// `GtkAspectFrame` uses a CSS node with name `aspectframe`.
|
||||||
///
|
///
|
||||||
/// # Accessibility
|
/// # Accessibility
|
||||||
///
|
///
|
||||||
@ -112,7 +112,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +119,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +126,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func obeyChild(_ obeyChild: Bool? = true) -> Self {
|
public func obeyChild(_ obeyChild: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.obeyChild = obeyChild
|
newSelf.obeyChild = obeyChild
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +136,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func ratio(_ ratio: Float) -> Self {
|
public func ratio(_ ratio: Float) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.ratio = ratio
|
newSelf.ratio = ratio
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +143,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func xalign(_ xalign: Float?) -> Self {
|
public func xalign(_ xalign: Float?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.xalign = xalign
|
newSelf.xalign = xalign
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +150,6 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
public func yalign(_ yalign: Float?) -> Self {
|
public func yalign(_ yalign: Float?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.yalign = yalign
|
newSelf.yalign = yalign
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Avatar.swift
|
// Avatar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -110,7 +110,6 @@ public struct Avatar: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +119,6 @@ public struct Avatar: AdwaitaWidget {
|
|||||||
public func showInitials(_ showInitials: Bool) -> Self {
|
public func showInitials(_ showInitials: Bool) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showInitials = showInitials
|
newSelf.showInitials = showInitials
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +126,6 @@ public struct Avatar: AdwaitaWidget {
|
|||||||
public func size(_ size: Int) -> Self {
|
public func size(_ size: Int) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.size = size
|
newSelf.size = size
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +136,6 @@ public struct Avatar: AdwaitaWidget {
|
|||||||
public func text(_ text: String?) -> Self {
|
public func text(_ text: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.text = text
|
newSelf.text = text
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Banner.swift
|
// Banner.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -122,7 +122,6 @@ public struct Banner: AdwaitaWidget {
|
|||||||
public func buttonLabel(_ buttonLabel: String?) -> Self {
|
public func buttonLabel(_ buttonLabel: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.buttonLabel = buttonLabel
|
newSelf.buttonLabel = buttonLabel
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +129,6 @@ public struct Banner: AdwaitaWidget {
|
|||||||
public func revealed(_ revealed: Bool? = true) -> Self {
|
public func revealed(_ revealed: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.revealed = revealed
|
newSelf.revealed = revealed
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +138,6 @@ public struct Banner: AdwaitaWidget {
|
|||||||
public func title(_ title: String) -> Self {
|
public func title(_ title: String) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +147,6 @@ public struct Banner: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Bin.swift
|
// Bin.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -77,7 +77,6 @@ public struct Bin: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Box.swift
|
// Box.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -155,7 +155,6 @@ public struct Box: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +162,6 @@ public struct Box: AdwaitaWidget {
|
|||||||
public func baselineChild(_ baselineChild: Int?) -> Self {
|
public func baselineChild(_ baselineChild: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.baselineChild = baselineChild
|
newSelf.baselineChild = baselineChild
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +169,6 @@ public struct Box: AdwaitaWidget {
|
|||||||
public func homogeneous(_ homogeneous: Bool? = true) -> Self {
|
public func homogeneous(_ homogeneous: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.homogeneous = homogeneous
|
newSelf.homogeneous = homogeneous
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +176,6 @@ public struct Box: AdwaitaWidget {
|
|||||||
public func spacing(_ spacing: Int) -> Self {
|
public func spacing(_ spacing: Int) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.spacing = spacing
|
newSelf.spacing = spacing
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Button.swift
|
// Button.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -17,6 +17,12 @@ import LevenshteinTransformations
|
|||||||
/// almost any other standard `GtkWidget`. The most commonly used child is the
|
/// almost any other standard `GtkWidget`. The most commonly used child is the
|
||||||
/// `GtkLabel`.
|
/// `GtkLabel`.
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.Button::activate]
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// `GtkButton` has a single CSS node with name button. The node will get the
|
/// `GtkButton` has a single CSS node with name button. The node will get the
|
||||||
@ -49,7 +55,7 @@ public struct Button: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// The accessible role cannot be changed once set.
|
/// The accessible role cannot be changed once set.
|
||||||
var accessibleRole: String?
|
var accessibleRole: String?
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
var actionName: String?
|
var actionName: String?
|
||||||
/// Whether the size of the button can be made smaller than the natural
|
/// Whether the size of the button can be made smaller than the natural
|
||||||
/// size of its contents.
|
/// size of its contents.
|
||||||
@ -161,15 +167,13 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
public func actionName(_ actionName: String?) -> Self {
|
public func actionName(_ actionName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.actionName = actionName
|
newSelf.actionName = actionName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,7 +187,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,7 +194,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +201,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasFrame = hasFrame
|
newSelf.hasFrame = hasFrame
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +208,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +215,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +223,6 @@ public struct Button: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ButtonContent.swift
|
// ButtonContent.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -129,7 +129,6 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +138,6 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +145,6 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,7 +156,6 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Carousel.swift
|
// Carousel.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -159,7 +159,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func allowLongSwipes(_ allowLongSwipes: Bool? = true) -> Self {
|
public func allowLongSwipes(_ allowLongSwipes: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.allowLongSwipes = allowLongSwipes
|
newSelf.allowLongSwipes = allowLongSwipes
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +168,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func allowMouseDrag(_ allowMouseDrag: Bool? = true) -> Self {
|
public func allowMouseDrag(_ allowMouseDrag: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.allowMouseDrag = allowMouseDrag
|
newSelf.allowMouseDrag = allowMouseDrag
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +177,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func allowScrollWheel(_ allowScrollWheel: Bool? = true) -> Self {
|
public func allowScrollWheel(_ allowScrollWheel: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.allowScrollWheel = allowScrollWheel
|
newSelf.allowScrollWheel = allowScrollWheel
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +187,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func interactive(_ interactive: Bool? = true) -> Self {
|
public func interactive(_ interactive: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.interactive = interactive
|
newSelf.interactive = interactive
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +194,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func nPages(_ nPages: UInt?) -> Self {
|
public func nPages(_ nPages: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.nPages = nPages
|
newSelf.nPages = nPages
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +203,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func revealDuration(_ revealDuration: UInt?) -> Self {
|
public func revealDuration(_ revealDuration: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.revealDuration = revealDuration
|
newSelf.revealDuration = revealDuration
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +210,6 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func spacing(_ spacing: UInt?) -> Self {
|
public func spacing(_ spacing: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.spacing = spacing
|
newSelf.spacing = spacing
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// CenterBox.swift
|
// CenterBox.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -146,7 +146,6 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +153,6 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
public func centerWidget(@ViewBuilder _ centerWidget: @escaping (() -> Body)) -> Self {
|
public func centerWidget(@ViewBuilder _ centerWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.centerWidget = centerWidget
|
newSelf.centerWidget = centerWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,7 +164,6 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
public func endWidget(@ViewBuilder _ endWidget: @escaping (() -> Body)) -> Self {
|
public func endWidget(@ViewBuilder _ endWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.endWidget = endWidget
|
newSelf.endWidget = endWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +178,6 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
public func shrinkCenterLast(_ shrinkCenterLast: Bool? = true) -> Self {
|
public func shrinkCenterLast(_ shrinkCenterLast: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.shrinkCenterLast = shrinkCenterLast
|
newSelf.shrinkCenterLast = shrinkCenterLast
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,7 +189,6 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
public func startWidget(@ViewBuilder _ startWidget: @escaping (() -> Body)) -> Self {
|
public func startWidget(@ViewBuilder _ startWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.startWidget = startWidget
|
newSelf.startWidget = startWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// CheckButton.swift
|
// CheckButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -48,10 +48,16 @@ import LevenshteinTransformations
|
|||||||
/// `GAction` with a target for each button. Using the `toggled` signals to keep
|
/// `GAction` with a target for each button. Using the `toggled` signals to keep
|
||||||
/// track of the group changes and state is discouraged.
|
/// track of the group changes and state is discouraged.
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// `GtkCheckButton` supports the following keyboard shortcuts:
|
||||||
|
///
|
||||||
|
/// - <kbd>␣</kbd> or <kbd>Enter</kbd> activates the button.
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// checkbutton[.text-button]
|
/// checkbutton[.text-button][.grouped]
|
||||||
/// ├── check
|
/// ├── check
|
||||||
/// ╰── [label]
|
/// ╰── [label]
|
||||||
/// ```
|
/// ```
|
||||||
@ -76,7 +82,7 @@ public struct CheckButton: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// The accessible role cannot be changed once set.
|
/// The accessible role cannot be changed once set.
|
||||||
var accessibleRole: String?
|
var accessibleRole: String?
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
var actionName: String?
|
var actionName: String?
|
||||||
/// If the check button is active.
|
/// If the check button is active.
|
||||||
///
|
///
|
||||||
@ -193,15 +199,13 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
public func actionName(_ actionName: String?) -> Self {
|
public func actionName(_ actionName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.actionName = actionName
|
newSelf.actionName = actionName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +216,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func active(_ active: Binding<Bool>?) -> Self {
|
public func active(_ active: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.active = active
|
newSelf.active = active
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +223,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,7 +233,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func inconsistent(_ inconsistent: Bool? = true) -> Self {
|
public func inconsistent(_ inconsistent: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.inconsistent = inconsistent
|
newSelf.inconsistent = inconsistent
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,7 +240,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +248,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Clamp.swift
|
// Clamp.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -21,7 +21,9 @@ import LevenshteinTransformations
|
|||||||
/// allocated the minimum size it can fit in instead.
|
/// allocated the minimum size it can fit in instead.
|
||||||
///
|
///
|
||||||
/// `AdwClamp` can scale with the text scale factor, use the
|
/// `AdwClamp` can scale with the text scale factor, use the
|
||||||
/// [property@ClampLayout:unit] property to enable that behavior.
|
/// [property@Clamp:unit] property to enable that behavior.
|
||||||
|
///
|
||||||
|
/// See also: [class@ClampLayout], [class@ClampScrollable].
|
||||||
///
|
///
|
||||||
/// ## CSS nodes
|
/// ## CSS nodes
|
||||||
///
|
///
|
||||||
@ -111,7 +113,6 @@ public struct Clamp: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +122,6 @@ public struct Clamp: AdwaitaWidget {
|
|||||||
public func maximumSize(_ maximumSize: Int?) -> Self {
|
public func maximumSize(_ maximumSize: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maximumSize = maximumSize
|
newSelf.maximumSize = maximumSize
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +142,6 @@ public struct Clamp: AdwaitaWidget {
|
|||||||
public func tighteningThreshold(_ tighteningThreshold: Int?) -> Self {
|
public func tighteningThreshold(_ tighteningThreshold: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.tighteningThreshold = tighteningThreshold
|
newSelf.tighteningThreshold = tighteningThreshold
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ComboRow.swift
|
// ComboRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -236,7 +236,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatableWidget = activatableWidget
|
newSelf.activatableWidget = activatableWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +248,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func enableSearch(_ enableSearch: Bool? = true) -> Self {
|
public func enableSearch(_ enableSearch: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableSearch = enableSearch
|
newSelf.enableSearch = enableSearch
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,7 +258,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func selected(_ selected: Binding<UInt>?) -> Self {
|
public func selected(_ selected: Binding<UInt>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.selected = selected
|
newSelf.selected = selected
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,7 +268,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func subtitle(_ subtitle: String?) -> Self {
|
public func subtitle(_ subtitle: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,7 +278,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleLines = subtitleLines
|
newSelf.subtitleLines = subtitleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,7 +287,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleSelectable = subtitleSelectable
|
newSelf.subtitleSelectable = subtitleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +297,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +306,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func titleLines(_ titleLines: Int?) -> Self {
|
public func titleLines(_ titleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleLines = titleLines
|
newSelf.titleLines = titleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -323,7 +315,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,7 +326,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -351,7 +341,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func useSubtitle(_ useSubtitle: Bool? = true) -> Self {
|
public func useSubtitle(_ useSubtitle: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useSubtitle = useSubtitle
|
newSelf.useSubtitle = useSubtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -359,7 +348,6 @@ if let selected, newValue != selected.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// EntryRow.swift
|
// EntryRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -52,6 +52,8 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// Emoji replacement is done with :-delimited names, like `:heart:`.
|
/// Emoji replacement is done with :-delimited names, like `:heart:`.
|
||||||
var enableEmojiCompletion: Bool?
|
var enableEmojiCompletion: Bool?
|
||||||
|
/// Maximum number of characters for the entry.
|
||||||
|
var maxLength: Int?
|
||||||
/// Whether to show the apply button.
|
/// Whether to show the apply button.
|
||||||
///
|
///
|
||||||
/// When set to `TRUE`, typing text in the entry will reveal an apply button.
|
/// When set to `TRUE`, typing text in the entry will reveal an apply button.
|
||||||
@ -148,6 +150,9 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
if let enableEmojiCompletion, updateProperties, (storage.previousState as? Self)?.enableEmojiCompletion != enableEmojiCompletion {
|
if let enableEmojiCompletion, updateProperties, (storage.previousState as? Self)?.enableEmojiCompletion != enableEmojiCompletion {
|
||||||
adw_entry_row_set_enable_emoji_completion(widget?.cast(), enableEmojiCompletion.cBool)
|
adw_entry_row_set_enable_emoji_completion(widget?.cast(), enableEmojiCompletion.cBool)
|
||||||
}
|
}
|
||||||
|
if let maxLength, updateProperties, (storage.previousState as? Self)?.maxLength != maxLength {
|
||||||
|
adw_entry_row_set_max_length(widget?.cast(), maxLength.cInt)
|
||||||
|
}
|
||||||
if let showApplyButton, updateProperties, (storage.previousState as? Self)?.showApplyButton != showApplyButton {
|
if let showApplyButton, updateProperties, (storage.previousState as? Self)?.showApplyButton != showApplyButton {
|
||||||
adw_entry_row_set_show_apply_button(widget?.cast(), showApplyButton.cBool)
|
adw_entry_row_set_show_apply_button(widget?.cast(), showApplyButton.cBool)
|
||||||
}
|
}
|
||||||
@ -202,7 +207,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatesDefault = activatesDefault
|
newSelf.activatesDefault = activatesDefault
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +216,13 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func enableEmojiCompletion(_ enableEmojiCompletion: Bool? = true) -> Self {
|
public func enableEmojiCompletion(_ enableEmojiCompletion: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableEmojiCompletion = enableEmojiCompletion
|
newSelf.enableEmojiCompletion = enableEmojiCompletion
|
||||||
|
return newSelf
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Maximum number of characters for the entry.
|
||||||
|
public func maxLength(_ maxLength: Int?) -> Self {
|
||||||
|
var newSelf = self
|
||||||
|
newSelf.maxLength = maxLength
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +238,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func showApplyButton(_ showApplyButton: Bool? = true) -> Self {
|
public func showApplyButton(_ showApplyButton: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showApplyButton = showApplyButton
|
newSelf.showApplyButton = showApplyButton
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +245,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func textLength(_ textLength: UInt?) -> Self {
|
public func textLength(_ textLength: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.textLength = textLength
|
newSelf.textLength = textLength
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,7 +255,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +264,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +275,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,7 +282,6 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ExpanderRow.swift
|
// ExpanderRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -33,6 +33,15 @@ import LevenshteinTransformations
|
|||||||
/// It contains the subnodes `row.header` for its main embedded row,
|
/// It contains the subnodes `row.header` for its main embedded row,
|
||||||
/// `list.nested` for the list it can expand, and `image.expander-row-arrow` for
|
/// `list.nested` for the list it can expand, and `image.expander-row-arrow` for
|
||||||
/// its arrow.
|
/// its arrow.
|
||||||
|
///
|
||||||
|
/// ## Style classes
|
||||||
|
///
|
||||||
|
/// `AdwExpanderRow` can use the [`.`](style-classes.html#property-rows)
|
||||||
|
/// style class to emphasize the row subtitle instead of the row title, which is
|
||||||
|
/// useful for displaying read-only properties.
|
||||||
|
///
|
||||||
|
/// When used together with the `.monospace` style class, only the subtitle
|
||||||
|
/// becomes monospace, not the title or any extra widgets.
|
||||||
public struct ExpanderRow: AdwaitaWidget {
|
public struct ExpanderRow: AdwaitaWidget {
|
||||||
|
|
||||||
/// Additional update functions for type extensions.
|
/// Additional update functions for type extensions.
|
||||||
@ -223,7 +232,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func enableExpansion(_ enableExpansion: Binding<Bool>?) -> Self {
|
public func enableExpansion(_ enableExpansion: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableExpansion = enableExpansion
|
newSelf.enableExpansion = enableExpansion
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,7 +239,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func expanded(_ expanded: Binding<Bool>?) -> Self {
|
public func expanded(_ expanded: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.expanded = expanded
|
newSelf.expanded = expanded
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,7 +246,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func showEnableSwitch(_ showEnableSwitch: Bool? = true) -> Self {
|
public func showEnableSwitch(_ showEnableSwitch: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showEnableSwitch = showEnableSwitch
|
newSelf.showEnableSwitch = showEnableSwitch
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,7 +256,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func subtitle(_ subtitle: String?) -> Self {
|
public func subtitle(_ subtitle: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +266,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleLines = subtitleLines
|
newSelf.subtitleLines = subtitleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,7 +276,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,7 +285,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func titleLines(_ titleLines: Int?) -> Self {
|
public func titleLines(_ titleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleLines = titleLines
|
newSelf.titleLines = titleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,7 +294,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +305,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -312,7 +312,6 @@ if let expanded, newValue != expanded.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Fixed.swift
|
// Fixed.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -102,7 +102,6 @@ public struct Fixed: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// FlowBox.swift
|
// FlowBox.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -34,6 +34,15 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// Also see [class@Gtk.ListBox].
|
/// Also see [class@Gtk.ListBox].
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.FlowBox::move-cursor]
|
||||||
|
/// - [signal@Gtk.FlowBox::select-all]
|
||||||
|
/// - [signal@Gtk.FlowBox::toggle-cursor-child]
|
||||||
|
/// - [signal@Gtk.FlowBox::unselect-all]
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@ -59,7 +68,7 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// Additional appear functions for type extensions.
|
/// Additional appear functions for type extensions.
|
||||||
var appearFunctions: [(ViewStorage, WidgetData) -> Void] = []
|
var appearFunctions: [(ViewStorage, WidgetData) -> Void] = []
|
||||||
|
|
||||||
/// accept-unpaired-release
|
/// Whether to accept unpaired release events.
|
||||||
var acceptUnpairedRelease: Bool?
|
var acceptUnpairedRelease: Bool?
|
||||||
/// The accessible role of the given `GtkAccessible` implementation.
|
/// The accessible role of the given `GtkAccessible` implementation.
|
||||||
///
|
///
|
||||||
@ -256,11 +265,10 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// accept-unpaired-release
|
/// Whether to accept unpaired release events.
|
||||||
public func acceptUnpairedRelease(_ acceptUnpairedRelease: Bool? = true) -> Self {
|
public func acceptUnpairedRelease(_ acceptUnpairedRelease: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.acceptUnpairedRelease = acceptUnpairedRelease
|
newSelf.acceptUnpairedRelease = acceptUnpairedRelease
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +278,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +286,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func activateOnSingleClick(_ activateOnSingleClick: Bool? = true) -> Self {
|
public func activateOnSingleClick(_ activateOnSingleClick: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activateOnSingleClick = activateOnSingleClick
|
newSelf.activateOnSingleClick = activateOnSingleClick
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,7 +293,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func columnSpacing(_ columnSpacing: UInt?) -> Self {
|
public func columnSpacing(_ columnSpacing: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.columnSpacing = columnSpacing
|
newSelf.columnSpacing = columnSpacing
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,7 +301,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func homogeneous(_ homogeneous: Bool? = true) -> Self {
|
public func homogeneous(_ homogeneous: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.homogeneous = homogeneous
|
newSelf.homogeneous = homogeneous
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -305,7 +309,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func maxChildrenPerLine(_ maxChildrenPerLine: UInt?) -> Self {
|
public func maxChildrenPerLine(_ maxChildrenPerLine: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxChildrenPerLine = maxChildrenPerLine
|
newSelf.maxChildrenPerLine = maxChildrenPerLine
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,7 +321,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func minChildrenPerLine(_ minChildrenPerLine: UInt?) -> Self {
|
public func minChildrenPerLine(_ minChildrenPerLine: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.minChildrenPerLine = minChildrenPerLine
|
newSelf.minChildrenPerLine = minChildrenPerLine
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +328,6 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func rowSpacing(_ rowSpacing: UInt?) -> Self {
|
public func rowSpacing(_ rowSpacing: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.rowSpacing = rowSpacing
|
newSelf.rowSpacing = rowSpacing
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// HeaderBar.swift
|
// HeaderBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -19,7 +19,7 @@ import LevenshteinTransformations
|
|||||||
/// ## Dialog Integration
|
/// ## Dialog Integration
|
||||||
///
|
///
|
||||||
/// When placed inside an [class@Dialog], `AdwHeaderBar` will display the dialog
|
/// When placed inside an [class@Dialog], `AdwHeaderBar` will display the dialog
|
||||||
/// title intead of window title. It will also adjust the decoration layout to
|
/// title instead of window title. It will also adjust the decoration layout to
|
||||||
/// ensure it always has a close button and nothing else. Set
|
/// ensure it always has a close button and nothing else. Set
|
||||||
/// [property@HeaderBar:show-start-title-buttons] and
|
/// [property@HeaderBar:show-start-title-buttons] and
|
||||||
/// [property@HeaderBar:show-end-title-buttons] to `FALSE` to remove it if it's
|
/// [property@HeaderBar:show-end-title-buttons] to `FALSE` to remove it if it's
|
||||||
@ -44,6 +44,13 @@ import LevenshteinTransformations
|
|||||||
/// `AdwHeaderBar` will automatically hide the title buttons other than at the
|
/// `AdwHeaderBar` will automatically hide the title buttons other than at the
|
||||||
/// edges of the window.
|
/// edges of the window.
|
||||||
///
|
///
|
||||||
|
/// ## Bottom Sheet Integration
|
||||||
|
///
|
||||||
|
/// When played inside [class@BottomSheet], `AdwHeaderBar` will not show the title
|
||||||
|
/// unless [property@BottomSheet:show-drag-handle] is set to `FALSE`, regardless
|
||||||
|
/// of [property@HeaderBar:show-title]. This only applies to the default title,
|
||||||
|
/// titles set with [property@HeaderBar:title-widget] will still be shown.
|
||||||
|
///
|
||||||
/// ## Centering Policy
|
/// ## Centering Policy
|
||||||
///
|
///
|
||||||
/// [property@HeaderBar:centering-policy] allows to enforce strict centering of
|
/// [property@HeaderBar:centering-policy] allows to enforce strict centering of
|
||||||
@ -265,7 +272,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func decorationLayout(_ decorationLayout: String?) -> Self {
|
public func decorationLayout(_ decorationLayout: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.decorationLayout = decorationLayout
|
newSelf.decorationLayout = decorationLayout
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +282,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func showBackButton(_ showBackButton: Bool? = true) -> Self {
|
public func showBackButton(_ showBackButton: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showBackButton = showBackButton
|
newSelf.showBackButton = showBackButton
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,7 +296,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func showEndTitleButtons(_ showEndTitleButtons: Bool? = true) -> Self {
|
public func showEndTitleButtons(_ showEndTitleButtons: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showEndTitleButtons = showEndTitleButtons
|
newSelf.showEndTitleButtons = showEndTitleButtons
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,7 +310,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func showStartTitleButtons(_ showStartTitleButtons: Bool? = true) -> Self {
|
public func showStartTitleButtons(_ showStartTitleButtons: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showStartTitleButtons = showStartTitleButtons
|
newSelf.showStartTitleButtons = showStartTitleButtons
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -314,7 +317,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func showTitle(_ showTitle: Bool? = true) -> Self {
|
public func showTitle(_ showTitle: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showTitle = showTitle
|
newSelf.showTitle = showTitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,7 +333,6 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
public func titleWidget(@ViewBuilder _ titleWidget: @escaping (() -> Body)) -> Self {
|
public func titleWidget(@ViewBuilder _ titleWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleWidget = titleWidget
|
newSelf.titleWidget = titleWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Label.swift
|
// Label.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -15,6 +15,40 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
|
/// ## Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// `GtkLabel` supports the following keyboard shortcuts, when the cursor is
|
||||||
|
/// visible:
|
||||||
|
///
|
||||||
|
/// - <kbd>Shift</kbd>+<kbd>F10</kbd> or <kbd>Menu</kbd> opens the context menu.
|
||||||
|
/// - <kbd>Ctrl</kbd>+<kbd>A</kbd> or <kbd>Ctrl</kbd>+<kbd>/</kbd>
|
||||||
|
/// selects all.
|
||||||
|
/// - <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>A</kbd> or
|
||||||
|
/// <kbd>Ctrl</kbd>+<kbd>\</kbd> unselects all.
|
||||||
|
///
|
||||||
|
/// Additionally, the following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.Label::activate-current-link]
|
||||||
|
/// - [signal@Gtk.Label::copy-clipboard]
|
||||||
|
/// - [signal@Gtk.Label::move-cursor]
|
||||||
|
///
|
||||||
|
/// ## Actions
|
||||||
|
///
|
||||||
|
/// `GtkLabel` defines a set of built-in actions:
|
||||||
|
///
|
||||||
|
/// - `clipboard.copy` copies the text to the clipboard.
|
||||||
|
/// - `clipboard.cut` doesn't do anything, since text in labels can't be deleted.
|
||||||
|
/// - `clipboard.paste` doesn't do anything, since text in labels can't be
|
||||||
|
/// edited.
|
||||||
|
/// - `link.open` opens the link, when activated on a link inside the label.
|
||||||
|
/// - `link.copy` copies the link to the clipboard, when activated on a link
|
||||||
|
/// inside the label.
|
||||||
|
/// - `menu.popup` opens the context menu.
|
||||||
|
/// - `selection.delete` doesn't do anything, since text in labels can't be
|
||||||
|
/// deleted.
|
||||||
|
/// - `selection.select-all` selects all of the text, if the label allows
|
||||||
|
/// selection.
|
||||||
|
///
|
||||||
/// ## CSS nodes
|
/// ## CSS nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@ -360,7 +394,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,7 +412,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func label(_ label: String) -> Self {
|
public func label(_ label: String) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,7 +423,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func lines(_ lines: Int?) -> Self {
|
public func lines(_ lines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.lines = lines
|
newSelf.lines = lines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -405,7 +436,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func maxWidthChars(_ maxWidthChars: Int?) -> Self {
|
public func maxWidthChars(_ maxWidthChars: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxWidthChars = maxWidthChars
|
newSelf.maxWidthChars = maxWidthChars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,7 +443,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func mnemonicKeyval(_ mnemonicKeyval: UInt?) -> Self {
|
public func mnemonicKeyval(_ mnemonicKeyval: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.mnemonicKeyval = mnemonicKeyval
|
newSelf.mnemonicKeyval = mnemonicKeyval
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +450,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func mnemonicWidget(@ViewBuilder _ mnemonicWidget: @escaping (() -> Body)) -> Self {
|
public func mnemonicWidget(@ViewBuilder _ mnemonicWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.mnemonicWidget = mnemonicWidget
|
newSelf.mnemonicWidget = mnemonicWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,7 +457,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func selectable(_ selectable: Bool? = true) -> Self {
|
public func selectable(_ selectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.selectable = selectable
|
newSelf.selectable = selectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -442,7 +469,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func singleLineMode(_ singleLineMode: Bool? = true) -> Self {
|
public func singleLineMode(_ singleLineMode: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.singleLineMode = singleLineMode
|
newSelf.singleLineMode = singleLineMode
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,7 +478,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -461,7 +486,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -475,7 +499,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func widthChars(_ widthChars: Int?) -> Self {
|
public func widthChars(_ widthChars: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.widthChars = widthChars
|
newSelf.widthChars = widthChars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -483,7 +506,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func wrap(_ wrap: Bool? = true) -> Self {
|
public func wrap(_ wrap: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.wrap = wrap
|
newSelf.wrap = wrap
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -494,7 +516,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func xalign(_ xalign: Float?) -> Self {
|
public func xalign(_ xalign: Float?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.xalign = xalign
|
newSelf.xalign = xalign
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,7 +526,6 @@ public struct Label: AdwaitaWidget {
|
|||||||
public func yalign(_ yalign: Float?) -> Self {
|
public func yalign(_ yalign: Float?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.yalign = yalign
|
newSelf.yalign = yalign
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// LevelBar.swift
|
// LevelBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -199,7 +199,6 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,7 +209,6 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
public func inverted(_ inverted: Bool? = true) -> Self {
|
public func inverted(_ inverted: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.inverted = inverted
|
newSelf.inverted = inverted
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,7 +216,6 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
public func maxValue(_ maxValue: Double?) -> Self {
|
public func maxValue(_ maxValue: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxValue = maxValue
|
newSelf.maxValue = maxValue
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +223,6 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
public func minValue(_ minValue: Double?) -> Self {
|
public func minValue(_ minValue: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.minValue = minValue
|
newSelf.minValue = minValue
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +230,6 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
public func value(_ value: Double?) -> Self {
|
public func value(_ value: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.value = value
|
newSelf.value = value
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// LinkButton.swift
|
// LinkButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -26,6 +26,19 @@ import LevenshteinTransformations
|
|||||||
/// [signal@Gtk.LinkButton::activate-link] signal and returning %TRUE from
|
/// [signal@Gtk.LinkButton::activate-link] signal and returning %TRUE from
|
||||||
/// the signal handler.
|
/// the signal handler.
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// `GtkLinkButton` supports the following keyboard shortcuts:
|
||||||
|
///
|
||||||
|
/// - <kbd>Shift</kbd>+<kbd>F10</kbd> or <kbd>Menu</kbd> opens the context menu.
|
||||||
|
///
|
||||||
|
/// # Actions
|
||||||
|
///
|
||||||
|
/// `GtkLinkButton` defines a set of built-in actions:
|
||||||
|
///
|
||||||
|
/// - `clipboard.copy` copies the url to the clipboard.
|
||||||
|
/// - `menu.popup` opens the context menu.
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// `GtkLinkButton` has a single CSS node with name button. To differentiate
|
/// `GtkLinkButton` has a single CSS node with name button. To differentiate
|
||||||
@ -45,7 +58,7 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// The accessible role cannot be changed once set.
|
/// The accessible role cannot be changed once set.
|
||||||
var accessibleRole: String?
|
var accessibleRole: String?
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
var actionName: String?
|
var actionName: String?
|
||||||
/// Whether the size of the button can be made smaller than the natural
|
/// Whether the size of the button can be made smaller than the natural
|
||||||
/// size of its contents.
|
/// size of its contents.
|
||||||
@ -170,15 +183,13 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
public func actionName(_ actionName: String?) -> Self {
|
public func actionName(_ actionName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.actionName = actionName
|
newSelf.actionName = actionName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,7 +203,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,7 +210,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +217,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasFrame = hasFrame
|
newSelf.hasFrame = hasFrame
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +224,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +231,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,7 +238,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func uri(_ uri: String) -> Self {
|
public func uri(_ uri: String) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.uri = uri
|
newSelf.uri = uri
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -241,7 +246,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,7 +255,6 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
public func visited(_ visited: Bool? = true) -> Self {
|
public func visited(_ visited: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.visited = visited
|
newSelf.visited = visited
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ListBox.swift
|
// ListBox.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -38,6 +38,15 @@ import LevenshteinTransformations
|
|||||||
/// attribute of a `<child>` element. See [method@Gtk.ListBox.set_placeholder]
|
/// attribute of a `<child>` element. See [method@Gtk.ListBox.set_placeholder]
|
||||||
/// for info.
|
/// for info.
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.ListBox::move-cursor]
|
||||||
|
/// - [signal@Gtk.ListBox::select-all]
|
||||||
|
/// - [signal@Gtk.ListBox::toggle-cursor-row]
|
||||||
|
/// - [signal@Gtk.ListBox::unselect-all]
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// |[<!-- language="plain" -->
|
/// |[<!-- language="plain" -->
|
||||||
@ -79,9 +88,19 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
var activateOnSingleClick: Bool?
|
var activateOnSingleClick: Bool?
|
||||||
/// Whether to show separators between rows.
|
/// Whether to show separators between rows.
|
||||||
var showSeparators: Bool?
|
var showSeparators: Bool?
|
||||||
/// activateCursorRow
|
/// Emitted when the cursor row is activated.
|
||||||
var activateCursorRow: (() -> Void)?
|
var activateCursorRow: (() -> Void)?
|
||||||
/// moveCursor
|
/// Emitted when the user initiates a cursor movement.
|
||||||
|
///
|
||||||
|
/// The default bindings for this signal come in two variants, the variant with
|
||||||
|
/// the Shift modifier extends the selection, the variant without the Shift
|
||||||
|
/// modifier does not. There are too many key combinations to list them all
|
||||||
|
/// here.
|
||||||
|
///
|
||||||
|
/// - <kbd>←</kbd>, <kbd>→</kbd>, <kbd>↑</kbd>, <kbd>↓</kbd>
|
||||||
|
/// move by individual children
|
||||||
|
/// - <kbd>Home</kbd>, <kbd>End</kbd> move to the ends of the box
|
||||||
|
/// - <kbd>PgUp</kbd>, <kbd>PgDn</kbd> move vertically by pages
|
||||||
var moveCursor: (() -> Void)?
|
var moveCursor: (() -> Void)?
|
||||||
/// Emitted when a row has been activated by the user.
|
/// Emitted when a row has been activated by the user.
|
||||||
var rowActivated: (() -> Void)?
|
var rowActivated: (() -> Void)?
|
||||||
@ -101,7 +120,9 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
var selectAll: (() -> Void)?
|
var selectAll: (() -> Void)?
|
||||||
/// Emitted when the set of selected rows changes.
|
/// Emitted when the set of selected rows changes.
|
||||||
var selectedRowsChanged: (() -> Void)?
|
var selectedRowsChanged: (() -> Void)?
|
||||||
/// toggleCursorRow
|
/// Emitted when the cursor row is toggled.
|
||||||
|
///
|
||||||
|
/// The default bindings for this signal is <kbd>Ctrl</kbd>+<kbd>␣</kbd>.
|
||||||
var toggleCursorRow: (() -> Void)?
|
var toggleCursorRow: (() -> Void)?
|
||||||
/// Emitted to unselect all children of the box, if the selection
|
/// Emitted to unselect all children of the box, if the selection
|
||||||
/// mode permits it.
|
/// mode permits it.
|
||||||
@ -230,7 +251,6 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func acceptUnpairedRelease(_ acceptUnpairedRelease: Bool? = true) -> Self {
|
public func acceptUnpairedRelease(_ acceptUnpairedRelease: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.acceptUnpairedRelease = acceptUnpairedRelease
|
newSelf.acceptUnpairedRelease = acceptUnpairedRelease
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,7 +260,6 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +268,6 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func activateOnSingleClick(_ activateOnSingleClick: Bool? = true) -> Self {
|
public func activateOnSingleClick(_ activateOnSingleClick: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activateOnSingleClick = activateOnSingleClick
|
newSelf.activateOnSingleClick = activateOnSingleClick
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,18 +275,27 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
public func showSeparators(_ showSeparators: Bool? = true) -> Self {
|
public func showSeparators(_ showSeparators: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showSeparators = showSeparators
|
newSelf.showSeparators = showSeparators
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// activateCursorRow
|
/// Emitted when the cursor row is activated.
|
||||||
public func activateCursorRow(_ activateCursorRow: @escaping () -> Void) -> Self {
|
public func activateCursorRow(_ activateCursorRow: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activateCursorRow = activateCursorRow
|
newSelf.activateCursorRow = activateCursorRow
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// moveCursor
|
/// Emitted when the user initiates a cursor movement.
|
||||||
|
///
|
||||||
|
/// The default bindings for this signal come in two variants, the variant with
|
||||||
|
/// the Shift modifier extends the selection, the variant without the Shift
|
||||||
|
/// modifier does not. There are too many key combinations to list them all
|
||||||
|
/// here.
|
||||||
|
///
|
||||||
|
/// - <kbd>←</kbd>, <kbd>→</kbd>, <kbd>↑</kbd>, <kbd>↓</kbd>
|
||||||
|
/// move by individual children
|
||||||
|
/// - <kbd>Home</kbd>, <kbd>End</kbd> move to the ends of the box
|
||||||
|
/// - <kbd>PgUp</kbd>, <kbd>PgDn</kbd> move vertically by pages
|
||||||
public func moveCursor(_ moveCursor: @escaping () -> Void) -> Self {
|
public func moveCursor(_ moveCursor: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.moveCursor = moveCursor
|
newSelf.moveCursor = moveCursor
|
||||||
@ -313,7 +340,9 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// toggleCursorRow
|
/// Emitted when the cursor row is toggled.
|
||||||
|
///
|
||||||
|
/// The default bindings for this signal is <kbd>Ctrl</kbd>+<kbd>␣</kbd>.
|
||||||
public func toggleCursorRow(_ toggleCursorRow: @escaping () -> Void) -> Self {
|
public func toggleCursorRow(_ toggleCursorRow: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.toggleCursorRow = toggleCursorRow
|
newSelf.toggleCursorRow = toggleCursorRow
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Menu.swift
|
// Menu.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -208,7 +208,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +215,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func active(_ active: Binding<Bool>?) -> Self {
|
public func active(_ active: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.active = active
|
newSelf.active = active
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +222,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func alwaysShowArrow(_ alwaysShowArrow: Bool? = true) -> Self {
|
public func alwaysShowArrow(_ alwaysShowArrow: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.alwaysShowArrow = alwaysShowArrow
|
newSelf.alwaysShowArrow = alwaysShowArrow
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +230,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -241,7 +237,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +244,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasFrame = hasFrame
|
newSelf.hasFrame = hasFrame
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +251,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,7 +258,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +268,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func menuModel(@ViewBuilder _ menuModel: @escaping (() -> Body)) -> Self {
|
public func menuModel(@ViewBuilder _ menuModel: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.menuModel = menuModel
|
newSelf.menuModel = menuModel
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -286,7 +277,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func primary(_ primary: Bool? = true) -> Self {
|
public func primary(_ primary: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.primary = primary
|
newSelf.primary = primary
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,7 +284,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// NavigationView.swift
|
// NavigationView.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -234,7 +234,6 @@ public struct NavigationView: AdwaitaWidget {
|
|||||||
public func animateTransitions(_ animateTransitions: Bool? = true) -> Self {
|
public func animateTransitions(_ animateTransitions: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.animateTransitions = animateTransitions
|
newSelf.animateTransitions = animateTransitions
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +244,6 @@ public struct NavigationView: AdwaitaWidget {
|
|||||||
public func popOnEscape(_ popOnEscape: Bool? = true) -> Self {
|
public func popOnEscape(_ popOnEscape: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.popOnEscape = popOnEscape
|
newSelf.popOnEscape = popOnEscape
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Overlay.swift
|
// Overlay.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -146,7 +146,6 @@ public struct Overlay: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +153,6 @@ public struct Overlay: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// OverlaySplitView.swift
|
// OverlaySplitView.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -40,7 +40,7 @@ import LevenshteinTransformations
|
|||||||
/// setting the `collapsed` property to `TRUE` on small widths, as follows:
|
/// setting the `collapsed` property to `TRUE` on small widths, as follows:
|
||||||
///
|
///
|
||||||
/// ```xml
|
/// ```xml
|
||||||
/// <object class="AdwWindow"><property name="width-request">360</property><property name="height-request">200</property><property name="default-width">800</property><property name="default-height">800</property><child><object class="AdwBreakpoint"><condition>max-width: 400sp</condition><setter object="split_view" property="collapsed">True</setter></object></child><property name="content"><object class="AdwOverlaySplitView" id="split_view"><property name="sidebar"><!-- ... --></property><property name="content"><!-- ... --></property></object></property></object>
|
/// <object class="AdwWindow"><property name="default-width">800</property><property name="default-height">800</property><child><object class="AdwBreakpoint"><condition>max-width: 400sp</condition><setter object="split_view" property="collapsed">True</setter></object></child><property name="content"><object class="AdwOverlaySplitView" id="split_view"><property name="sidebar"><!-- ... --></property><property name="content"><!-- ... --></property></object></property></object>
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// `AdwOverlaySplitView` is often used for implementing the
|
/// `AdwOverlaySplitView` is often used for implementing the
|
||||||
@ -261,7 +261,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func collapsed(_ collapsed: Bool? = true) -> Self {
|
public func collapsed(_ collapsed: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.collapsed = collapsed
|
newSelf.collapsed = collapsed
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +268,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func content(@ViewBuilder _ content: @escaping (() -> Body)) -> Self {
|
public func content(@ViewBuilder _ content: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.content = content
|
newSelf.content = content
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +277,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func enableHideGesture(_ enableHideGesture: Bool? = true) -> Self {
|
public func enableHideGesture(_ enableHideGesture: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableHideGesture = enableHideGesture
|
newSelf.enableHideGesture = enableHideGesture
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,7 +286,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func enableShowGesture(_ enableShowGesture: Bool? = true) -> Self {
|
public func enableShowGesture(_ enableShowGesture: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableShowGesture = enableShowGesture
|
newSelf.enableShowGesture = enableShowGesture
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +299,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func maxSidebarWidth(_ maxSidebarWidth: Double?) -> Self {
|
public func maxSidebarWidth(_ maxSidebarWidth: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxSidebarWidth = maxSidebarWidth
|
newSelf.maxSidebarWidth = maxSidebarWidth
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -317,7 +312,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func minSidebarWidth(_ minSidebarWidth: Double?) -> Self {
|
public func minSidebarWidth(_ minSidebarWidth: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.minSidebarWidth = minSidebarWidth
|
newSelf.minSidebarWidth = minSidebarWidth
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,7 +323,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func pinSidebar(_ pinSidebar: Bool? = true) -> Self {
|
public func pinSidebar(_ pinSidebar: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.pinSidebar = pinSidebar
|
newSelf.pinSidebar = pinSidebar
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +330,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func showSidebar(_ showSidebar: Binding<Bool>?) -> Self {
|
public func showSidebar(_ showSidebar: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showSidebar = showSidebar
|
newSelf.showSidebar = showSidebar
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +337,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func sidebar(@ViewBuilder _ sidebar: @escaping (() -> Body)) -> Self {
|
public func sidebar(@ViewBuilder _ sidebar: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.sidebar = sidebar
|
newSelf.sidebar = sidebar
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -360,7 +351,6 @@ if let showSidebar, newValue != showSidebar.wrappedValue {
|
|||||||
public func sidebarWidthFraction(_ sidebarWidthFraction: Double?) -> Self {
|
public func sidebarWidthFraction(_ sidebarWidthFraction: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.sidebarWidthFraction = sidebarWidthFraction
|
newSelf.sidebarWidthFraction = sidebarWidthFraction
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PasswordEntryRow.swift
|
// PasswordEntryRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -37,6 +37,8 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// Emoji replacement is done with :-delimited names, like `:heart:`.
|
/// Emoji replacement is done with :-delimited names, like `:heart:`.
|
||||||
var enableEmojiCompletion: Bool?
|
var enableEmojiCompletion: Bool?
|
||||||
|
/// Maximum number of characters for the entry.
|
||||||
|
var maxLength: Int?
|
||||||
/// Whether to show the apply button.
|
/// Whether to show the apply button.
|
||||||
///
|
///
|
||||||
/// When set to `TRUE`, typing text in the entry will reveal an apply button.
|
/// When set to `TRUE`, typing text in the entry will reveal an apply button.
|
||||||
@ -133,6 +135,9 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
if let enableEmojiCompletion, updateProperties, (storage.previousState as? Self)?.enableEmojiCompletion != enableEmojiCompletion {
|
if let enableEmojiCompletion, updateProperties, (storage.previousState as? Self)?.enableEmojiCompletion != enableEmojiCompletion {
|
||||||
adw_entry_row_set_enable_emoji_completion(widget?.cast(), enableEmojiCompletion.cBool)
|
adw_entry_row_set_enable_emoji_completion(widget?.cast(), enableEmojiCompletion.cBool)
|
||||||
}
|
}
|
||||||
|
if let maxLength, updateProperties, (storage.previousState as? Self)?.maxLength != maxLength {
|
||||||
|
adw_entry_row_set_max_length(widget?.cast(), maxLength.cInt)
|
||||||
|
}
|
||||||
if let showApplyButton, updateProperties, (storage.previousState as? Self)?.showApplyButton != showApplyButton {
|
if let showApplyButton, updateProperties, (storage.previousState as? Self)?.showApplyButton != showApplyButton {
|
||||||
adw_entry_row_set_show_apply_button(widget?.cast(), showApplyButton.cBool)
|
adw_entry_row_set_show_apply_button(widget?.cast(), showApplyButton.cBool)
|
||||||
}
|
}
|
||||||
@ -163,7 +168,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatesDefault = activatesDefault
|
newSelf.activatesDefault = activatesDefault
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,7 +177,13 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func enableEmojiCompletion(_ enableEmojiCompletion: Bool? = true) -> Self {
|
public func enableEmojiCompletion(_ enableEmojiCompletion: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableEmojiCompletion = enableEmojiCompletion
|
newSelf.enableEmojiCompletion = enableEmojiCompletion
|
||||||
|
return newSelf
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Maximum number of characters for the entry.
|
||||||
|
public func maxLength(_ maxLength: Int?) -> Self {
|
||||||
|
var newSelf = self
|
||||||
|
newSelf.maxLength = maxLength
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +199,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func showApplyButton(_ showApplyButton: Bool? = true) -> Self {
|
public func showApplyButton(_ showApplyButton: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showApplyButton = showApplyButton
|
newSelf.showApplyButton = showApplyButton
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,7 +206,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func textLength(_ textLength: UInt?) -> Self {
|
public func textLength(_ textLength: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.textLength = textLength
|
newSelf.textLength = textLength
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +216,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,7 +225,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -230,7 +236,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +243,6 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Picture.swift
|
// Picture.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -126,7 +126,6 @@ public struct Picture: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +133,6 @@ public struct Picture: AdwaitaWidget {
|
|||||||
public func alternativeText(_ alternativeText: String?) -> Self {
|
public func alternativeText(_ alternativeText: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.alternativeText = alternativeText
|
newSelf.alternativeText = alternativeText
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +140,6 @@ public struct Picture: AdwaitaWidget {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +147,6 @@ public struct Picture: AdwaitaWidget {
|
|||||||
public func contentFit(_ contentFit: ContentFit?) -> Self {
|
public func contentFit(_ contentFit: ContentFit?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.contentFit = contentFit
|
newSelf.contentFit = contentFit
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Popover.swift
|
// Popover.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -29,7 +29,7 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// ## GtkPopover as menu replacement
|
/// ## GtkPopover as menu replacement
|
||||||
///
|
///
|
||||||
/// `GtkPopover` is often used to replace menus. The best was to do this
|
/// `GtkPopover` is often used to replace menus. The best way to do this
|
||||||
/// is to use the [class@Gtk.PopoverMenu] subclass which supports being
|
/// is to use the [class@Gtk.PopoverMenu] subclass which supports being
|
||||||
/// populated from a `GMenuModel` with [ctor@Gtk.PopoverMenu.new_from_model].
|
/// populated from a `GMenuModel` with [ctor@Gtk.PopoverMenu.new_from_model].
|
||||||
///
|
///
|
||||||
@ -37,6 +37,17 @@ import LevenshteinTransformations
|
|||||||
/// <section><attribute name="display-hint">horizontal-buttons</attribute><item><attribute name="label">Cut</attribute><attribute name="action">app.cut</attribute><attribute name="verb-icon">edit-cut-symbolic</attribute></item><item><attribute name="label">Copy</attribute><attribute name="action">app.copy</attribute><attribute name="verb-icon">edit-copy-symbolic</attribute></item><item><attribute name="label">Paste</attribute><attribute name="action">app.paste</attribute><attribute name="verb-icon">edit-paste-symbolic</attribute></item></section>
|
/// <section><attribute name="display-hint">horizontal-buttons</attribute><item><attribute name="label">Cut</attribute><attribute name="action">app.cut</attribute><attribute name="verb-icon">edit-cut-symbolic</attribute></item><item><attribute name="label">Copy</attribute><attribute name="action">app.copy</attribute><attribute name="verb-icon">edit-copy-symbolic</attribute></item><item><attribute name="label">Paste</attribute><attribute name="action">app.paste</attribute><attribute name="verb-icon">edit-paste-symbolic</attribute></item></section>
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// `GtkPopover` supports the following keyboard shortcuts:
|
||||||
|
///
|
||||||
|
/// - <kbd>Escape</kbd> closes the popover.
|
||||||
|
/// - <kbd>Alt</kbd> makes the mnemonics visible.
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.Popover::activate-default]
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@ -96,6 +107,8 @@ public struct Popover: AdwaitaWidget {
|
|||||||
/// Emitted whend the user activates the default widget.
|
/// Emitted whend the user activates the default widget.
|
||||||
///
|
///
|
||||||
/// This is a [keybinding signal](class.SignalAction.html).
|
/// This is a [keybinding signal](class.SignalAction.html).
|
||||||
|
///
|
||||||
|
/// The default binding for this signal is <kbd>Enter</kbd>.
|
||||||
var activateDefault: (() -> Void)?
|
var activateDefault: (() -> Void)?
|
||||||
/// Emitted when the popover is closed.
|
/// Emitted when the popover is closed.
|
||||||
var closed: (() -> Void)?
|
var closed: (() -> Void)?
|
||||||
@ -181,7 +194,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +201,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func autohide(_ autohide: Bool? = true) -> Self {
|
public func autohide(_ autohide: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.autohide = autohide
|
newSelf.autohide = autohide
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +210,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func cascadePopdown(_ cascadePopdown: Bool? = true) -> Self {
|
public func cascadePopdown(_ cascadePopdown: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.cascadePopdown = cascadePopdown
|
newSelf.cascadePopdown = cascadePopdown
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +217,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +224,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func defaultWidget(@ViewBuilder _ defaultWidget: @escaping (() -> Body)) -> Self {
|
public func defaultWidget(@ViewBuilder _ defaultWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.defaultWidget = defaultWidget
|
newSelf.defaultWidget = defaultWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +231,6 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func hasArrow(_ hasArrow: Bool? = true) -> Self {
|
public func hasArrow(_ hasArrow: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasArrow = hasArrow
|
newSelf.hasArrow = hasArrow
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,13 +238,14 @@ public struct Popover: AdwaitaWidget {
|
|||||||
public func mnemonicsVisible(_ mnemonicsVisible: Bool? = true) -> Self {
|
public func mnemonicsVisible(_ mnemonicsVisible: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.mnemonicsVisible = mnemonicsVisible
|
newSelf.mnemonicsVisible = mnemonicsVisible
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Emitted whend the user activates the default widget.
|
/// Emitted whend the user activates the default widget.
|
||||||
///
|
///
|
||||||
/// This is a [keybinding signal](class.SignalAction.html).
|
/// This is a [keybinding signal](class.SignalAction.html).
|
||||||
|
///
|
||||||
|
/// The default binding for this signal is <kbd>Enter</kbd>.
|
||||||
public func activateDefault(_ activateDefault: @escaping () -> Void) -> Self {
|
public func activateDefault(_ activateDefault: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activateDefault = activateDefault
|
newSelf.activateDefault = activateDefault
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesGroup.swift
|
// PreferencesGroup.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -19,6 +19,11 @@ import LevenshteinTransformations
|
|||||||
/// title and a description. The title will be used by [class@PreferencesDialog]
|
/// title and a description. The title will be used by [class@PreferencesDialog]
|
||||||
/// to let the user look for a preference.
|
/// to let the user look for a preference.
|
||||||
///
|
///
|
||||||
|
/// The [property@PreferencesGroup:separate-rows] property can be used to
|
||||||
|
/// separate the rows within the group, same as when using the
|
||||||
|
/// [`.boxed-list-separate`](style-classes.html#boxed-lists-cards) style class
|
||||||
|
/// instead of `.boxed-list`.
|
||||||
|
///
|
||||||
/// ## AdwPreferencesGroup as GtkBuildable
|
/// ## AdwPreferencesGroup as GtkBuildable
|
||||||
///
|
///
|
||||||
/// The `AdwPreferencesGroup` implementation of the [iface@Gtk.Buildable] interface
|
/// The `AdwPreferencesGroup` implementation of the [iface@Gtk.Buildable] interface
|
||||||
@ -52,6 +57,12 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
/// Suffixes are commonly used to show a button or a spinner for the whole
|
/// Suffixes are commonly used to show a button or a spinner for the whole
|
||||||
/// group.
|
/// group.
|
||||||
var headerSuffix: (() -> Body)?
|
var headerSuffix: (() -> Body)?
|
||||||
|
/// Whether to separate rows.
|
||||||
|
///
|
||||||
|
/// Equivalent to using the
|
||||||
|
/// [`.boxed-list-separate`](style-classes.html#boxed-lists-cards) style class
|
||||||
|
/// on a [class@Gtk.ListBox] instead of `.boxed-list`.
|
||||||
|
var separateRows: Bool?
|
||||||
/// The title for this group of preferences.
|
/// The title for this group of preferences.
|
||||||
var title: String?
|
var title: String?
|
||||||
/// The body for the widget "child".
|
/// The body for the widget "child".
|
||||||
@ -101,6 +112,9 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
if let widget = storage.content["headerSuffix"]?.first {
|
if let widget = storage.content["headerSuffix"]?.first {
|
||||||
headerSuffix?().updateStorage(widget, data: data, updateProperties: updateProperties, type: type)
|
headerSuffix?().updateStorage(widget, data: data, updateProperties: updateProperties, type: type)
|
||||||
}
|
}
|
||||||
|
if let separateRows, updateProperties, (storage.previousState as? Self)?.separateRows != separateRows {
|
||||||
|
adw_preferences_group_set_separate_rows(widget?.cast(), separateRows.cBool)
|
||||||
|
}
|
||||||
if let title, updateProperties, (storage.previousState as? Self)?.title != title {
|
if let title, updateProperties, (storage.previousState as? Self)?.title != title {
|
||||||
adw_preferences_group_set_title(widget?.cast(), title)
|
adw_preferences_group_set_title(widget?.cast(), title)
|
||||||
}
|
}
|
||||||
@ -131,7 +145,6 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
public func description(_ description: String?) -> Self {
|
public func description(_ description: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.description = description
|
newSelf.description = description
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +157,17 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
public func headerSuffix(@ViewBuilder _ headerSuffix: @escaping (() -> Body)) -> Self {
|
public func headerSuffix(@ViewBuilder _ headerSuffix: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.headerSuffix = headerSuffix
|
newSelf.headerSuffix = headerSuffix
|
||||||
|
return newSelf
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Whether to separate rows.
|
||||||
|
///
|
||||||
|
/// Equivalent to using the
|
||||||
|
/// [`.boxed-list-separate`](style-classes.html#boxed-lists-cards) style class
|
||||||
|
/// on a [class@Gtk.ListBox] instead of `.boxed-list`.
|
||||||
|
public func separateRows(_ separateRows: Bool? = true) -> Self {
|
||||||
|
var newSelf = self
|
||||||
|
newSelf.separateRows = separateRows
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +175,6 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesPage.swift
|
// PreferencesPage.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -31,6 +31,8 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
|
|
||||||
/// The description to be displayed at the top of the page.
|
/// The description to be displayed at the top of the page.
|
||||||
var description: String?
|
var description: String?
|
||||||
|
/// Whether the description should be centered.
|
||||||
|
var descriptionCentered: Bool?
|
||||||
/// The icon name for this page.
|
/// The icon name for this page.
|
||||||
var iconName: String?
|
var iconName: String?
|
||||||
/// The name of this page.
|
/// The name of this page.
|
||||||
@ -79,6 +81,9 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
if let description, updateProperties, (storage.previousState as? Self)?.description != description {
|
if let description, updateProperties, (storage.previousState as? Self)?.description != description {
|
||||||
adw_preferences_page_set_description(widget?.cast(), description)
|
adw_preferences_page_set_description(widget?.cast(), description)
|
||||||
}
|
}
|
||||||
|
if let descriptionCentered, updateProperties, (storage.previousState as? Self)?.descriptionCentered != descriptionCentered {
|
||||||
|
adw_preferences_page_set_description_centered(widget?.cast(), descriptionCentered.cBool)
|
||||||
|
}
|
||||||
if let iconName, updateProperties, (storage.previousState as? Self)?.iconName != iconName {
|
if let iconName, updateProperties, (storage.previousState as? Self)?.iconName != iconName {
|
||||||
adw_preferences_page_set_icon_name(widget?.cast(), iconName)
|
adw_preferences_page_set_icon_name(widget?.cast(), iconName)
|
||||||
}
|
}
|
||||||
@ -118,7 +123,13 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
public func description(_ description: String?) -> Self {
|
public func description(_ description: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.description = description
|
newSelf.description = description
|
||||||
|
return newSelf
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Whether the description should be centered.
|
||||||
|
public func descriptionCentered(_ descriptionCentered: Bool? = true) -> Self {
|
||||||
|
var newSelf = self
|
||||||
|
newSelf.descriptionCentered = descriptionCentered
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +137,6 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +144,6 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
public func name(_ name: String?) -> Self {
|
public func name(_ name: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.name = name
|
newSelf.name = name
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +151,6 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +158,6 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesRow.swift
|
// PreferencesRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -100,7 +100,6 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +109,6 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +120,6 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +127,6 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ProgressBar.swift
|
// ProgressBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -145,7 +145,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +152,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func fraction(_ fraction: Double?) -> Self {
|
public func fraction(_ fraction: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.fraction = fraction
|
newSelf.fraction = fraction
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,7 +159,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func inverted(_ inverted: Bool? = true) -> Self {
|
public func inverted(_ inverted: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.inverted = inverted
|
newSelf.inverted = inverted
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +166,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func pulseStep(_ pulseStep: Double?) -> Self {
|
public func pulseStep(_ pulseStep: Double?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.pulseStep = pulseStep
|
newSelf.pulseStep = pulseStep
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,7 +182,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func showText(_ showText: Bool? = true) -> Self {
|
public func showText(_ showText: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showText = showText
|
newSelf.showText = showText
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +189,6 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
public func text(_ text: String?) -> Self {
|
public func text(_ text: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.text = text
|
newSelf.text = text
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ScrolledWindow.swift
|
// ScrolledWindow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -54,6 +54,12 @@ import LevenshteinTransformations
|
|||||||
/// can be turned off with the [property@Gtk.ScrolledWindow:overlay-scrolling]
|
/// can be turned off with the [property@Gtk.ScrolledWindow:overlay-scrolling]
|
||||||
/// property.
|
/// property.
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.ScrolledWindow::scroll-child]
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// `GtkScrolledWindow` has a main CSS node with name scrolledwindow.
|
/// `GtkScrolledWindow` has a main CSS node with name scrolledwindow.
|
||||||
@ -154,8 +160,8 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
/// This is a [keybinding signal](class.SignalAction.html).
|
/// This is a [keybinding signal](class.SignalAction.html).
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal are
|
/// The default bindings for this signal are
|
||||||
/// `Ctrl + Tab` to move forward and `Ctrl + Shift + Tab` to
|
/// <kbd>Ctrl</kbd>+<kbd>Tab</kbd> to move forward and
|
||||||
/// move backward.
|
/// <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd>` to move backward.
|
||||||
var moveFocusOut: (() -> Void)?
|
var moveFocusOut: (() -> Void)?
|
||||||
/// Emitted when a keybinding that scrolls is pressed.
|
/// Emitted when a keybinding that scrolls is pressed.
|
||||||
///
|
///
|
||||||
@ -264,7 +270,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +281,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +288,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasFrame = hasFrame
|
newSelf.hasFrame = hasFrame
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,7 +297,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func kineticScrolling(_ kineticScrolling: Bool? = true) -> Self {
|
public func kineticScrolling(_ kineticScrolling: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.kineticScrolling = kineticScrolling
|
newSelf.kineticScrolling = kineticScrolling
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,7 +304,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func maxContentHeight(_ maxContentHeight: Int?) -> Self {
|
public func maxContentHeight(_ maxContentHeight: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxContentHeight = maxContentHeight
|
newSelf.maxContentHeight = maxContentHeight
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,7 +311,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func maxContentWidth(_ maxContentWidth: Int?) -> Self {
|
public func maxContentWidth(_ maxContentWidth: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxContentWidth = maxContentWidth
|
newSelf.maxContentWidth = maxContentWidth
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,7 +318,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func minContentHeight(_ minContentHeight: Int?) -> Self {
|
public func minContentHeight(_ minContentHeight: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.minContentHeight = minContentHeight
|
newSelf.minContentHeight = minContentHeight
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +325,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func minContentWidth(_ minContentWidth: Int?) -> Self {
|
public func minContentWidth(_ minContentWidth: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.minContentWidth = minContentWidth
|
newSelf.minContentWidth = minContentWidth
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,7 +339,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func overlayScrolling(_ overlayScrolling: Bool? = true) -> Self {
|
public func overlayScrolling(_ overlayScrolling: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.overlayScrolling = overlayScrolling
|
newSelf.overlayScrolling = overlayScrolling
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,7 +350,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func propagateNaturalHeight(_ propagateNaturalHeight: Bool? = true) -> Self {
|
public func propagateNaturalHeight(_ propagateNaturalHeight: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.propagateNaturalHeight = propagateNaturalHeight
|
newSelf.propagateNaturalHeight = propagateNaturalHeight
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +361,6 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
public func propagateNaturalWidth(_ propagateNaturalWidth: Bool? = true) -> Self {
|
public func propagateNaturalWidth(_ propagateNaturalWidth: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.propagateNaturalWidth = propagateNaturalWidth
|
newSelf.propagateNaturalWidth = propagateNaturalWidth
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -405,8 +400,8 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
/// This is a [keybinding signal](class.SignalAction.html).
|
/// This is a [keybinding signal](class.SignalAction.html).
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal are
|
/// The default bindings for this signal are
|
||||||
/// `Ctrl + Tab` to move forward and `Ctrl + Shift + Tab` to
|
/// <kbd>Ctrl</kbd>+<kbd>Tab</kbd> to move forward and
|
||||||
/// move backward.
|
/// <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd>` to move backward.
|
||||||
public func moveFocusOut(_ moveFocusOut: @escaping () -> Void) -> Self {
|
public func moveFocusOut(_ moveFocusOut: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.moveFocusOut = moveFocusOut
|
newSelf.moveFocusOut = moveFocusOut
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SearchBar.swift
|
// SearchBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -34,6 +34,12 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// [A simple example](https://gitlab.gnome.org/GNOME/gtk/tree/main/examples/search-bar.c)
|
/// [A simple example](https://gitlab.gnome.org/GNOME/gtk/tree/main/examples/search-bar.c)
|
||||||
///
|
///
|
||||||
|
/// # Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// `GtkSearchBar` supports the following keyboard shortcuts:
|
||||||
|
///
|
||||||
|
/// - <kbd>Escape</kbd> hides the search bar.
|
||||||
|
///
|
||||||
/// # CSS nodes
|
/// # CSS nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@ -114,6 +120,9 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
if let widget = storage.content["keyCaptureWidget"]?.first {
|
if let widget = storage.content["keyCaptureWidget"]?.first {
|
||||||
keyCaptureWidget?().updateStorage(widget, data: data, updateProperties: updateProperties, type: type)
|
keyCaptureWidget?().updateStorage(widget, data: data, updateProperties: updateProperties, type: type)
|
||||||
}
|
}
|
||||||
|
if let searchModeEnabled, updateProperties, (storage.previousState as? Self)?.searchModeEnabled != searchModeEnabled {
|
||||||
|
gtk_search_bar_set_search_mode(widget, searchModeEnabled.cBool)
|
||||||
|
}
|
||||||
if let showCloseButton, updateProperties, (storage.previousState as? Self)?.showCloseButton != showCloseButton {
|
if let showCloseButton, updateProperties, (storage.previousState as? Self)?.showCloseButton != showCloseButton {
|
||||||
gtk_search_bar_set_show_close_button(widget, showCloseButton.cBool)
|
gtk_search_bar_set_show_close_button(widget, showCloseButton.cBool)
|
||||||
}
|
}
|
||||||
@ -134,7 +143,6 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +150,6 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +157,6 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
public func keyCaptureWidget(@ViewBuilder _ keyCaptureWidget: @escaping (() -> Body)) -> Self {
|
public func keyCaptureWidget(@ViewBuilder _ keyCaptureWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.keyCaptureWidget = keyCaptureWidget
|
newSelf.keyCaptureWidget = keyCaptureWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +164,6 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
public func searchModeEnabled(_ searchModeEnabled: Bool? = true) -> Self {
|
public func searchModeEnabled(_ searchModeEnabled: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.searchModeEnabled = searchModeEnabled
|
newSelf.searchModeEnabled = searchModeEnabled
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,7 +171,6 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
public func showCloseButton(_ showCloseButton: Bool? = true) -> Self {
|
public func showCloseButton(_ showCloseButton: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.showCloseButton = showCloseButton
|
newSelf.showCloseButton = showCloseButton
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SearchEntry.swift
|
// SearchEntry.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -39,6 +39,15 @@ import LevenshteinTransformations
|
|||||||
/// `GtkSearchEntry` provides only minimal API and should be used with
|
/// `GtkSearchEntry` provides only minimal API and should be used with
|
||||||
/// the [iface@Gtk.Editable] API.
|
/// the [iface@Gtk.Editable] API.
|
||||||
///
|
///
|
||||||
|
/// ## Shortcuts and Gestures
|
||||||
|
///
|
||||||
|
/// The following signals have default keybindings:
|
||||||
|
///
|
||||||
|
/// - [signal@Gtk.SearchEntry::activate]
|
||||||
|
/// - [signal@Gtk.SearchEntry::next-match]
|
||||||
|
/// - [signal@Gtk.SearchEntry::previous-match]
|
||||||
|
/// - [signal@Gtk.SearchEntry::stop-search]
|
||||||
|
///
|
||||||
/// ## CSS Nodes
|
/// ## CSS Nodes
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@ -91,7 +100,7 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
var xalign: Float?
|
var xalign: Float?
|
||||||
/// Emitted when the entry is activated.
|
/// Emitted when the entry is activated.
|
||||||
///
|
///
|
||||||
/// The keybindings for this signal are all forms of the Enter key.
|
/// The keybindings for this signal are all forms of the <kbd>Enter</kbd> key.
|
||||||
var activate: (() -> Void)?
|
var activate: (() -> Void)?
|
||||||
/// Emitted at the end of a single user-visible operation on the
|
/// Emitted at the end of a single user-visible operation on the
|
||||||
/// contents.
|
/// contents.
|
||||||
@ -127,7 +136,7 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
/// Applications should connect to it, to implement moving
|
/// Applications should connect to it, to implement moving
|
||||||
/// between matches.
|
/// between matches.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Ctrl-g.
|
/// The default bindings for this signal is <kbd>Ctrl</kbd>+<kbd>g</kbd>.
|
||||||
var nextMatch: (() -> Void)?
|
var nextMatch: (() -> Void)?
|
||||||
/// Emitted when the user initiates a move to the previous match
|
/// Emitted when the user initiates a move to the previous match
|
||||||
/// for the current search string.
|
/// for the current search string.
|
||||||
@ -137,7 +146,8 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
/// Applications should connect to it, to implement moving
|
/// Applications should connect to it, to implement moving
|
||||||
/// between matches.
|
/// between matches.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Ctrl-Shift-g.
|
/// The default bindings for this signal is
|
||||||
|
/// <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>g</kbd>.
|
||||||
var previousMatch: (() -> Void)?
|
var previousMatch: (() -> Void)?
|
||||||
/// Emitted with a delay. The length of the delay can be
|
/// Emitted with a delay. The length of the delay can be
|
||||||
/// changed with the [property@Gtk.SearchEntry:search-delay]
|
/// changed with the [property@Gtk.SearchEntry:search-delay]
|
||||||
@ -152,7 +162,7 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
/// Applications should connect to it, to implement hiding
|
/// Applications should connect to it, to implement hiding
|
||||||
/// the search entry in this case.
|
/// the search entry in this case.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Escape.
|
/// The default bindings for this signal is <kbd>Escape</kbd>.
|
||||||
var stopSearch: (() -> Void)?
|
var stopSearch: (() -> Void)?
|
||||||
|
|
||||||
/// Initialize `SearchEntry`.
|
/// Initialize `SearchEntry`.
|
||||||
@ -234,6 +244,9 @@ if let text, newValue != text.wrappedValue {
|
|||||||
text.wrappedValue = newValue
|
text.wrappedValue = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if let cursorPosition, updateProperties, (storage.previousState as? Self)?.cursorPosition != cursorPosition {
|
||||||
|
gtk_editable_set_position(widget, cursorPosition.cInt)
|
||||||
|
}
|
||||||
if let editable, updateProperties, (storage.previousState as? Self)?.editable != editable {
|
if let editable, updateProperties, (storage.previousState as? Self)?.editable != editable {
|
||||||
gtk_editable_set_editable(widget, editable.cBool)
|
gtk_editable_set_editable(widget, editable.cBool)
|
||||||
}
|
}
|
||||||
@ -255,6 +268,9 @@ if let text, newValue != text.wrappedValue {
|
|||||||
if let widthChars, updateProperties, (storage.previousState as? Self)?.widthChars != widthChars {
|
if let widthChars, updateProperties, (storage.previousState as? Self)?.widthChars != widthChars {
|
||||||
gtk_editable_set_width_chars(widget, widthChars.cInt)
|
gtk_editable_set_width_chars(widget, widthChars.cInt)
|
||||||
}
|
}
|
||||||
|
if let xalign, updateProperties, (storage.previousState as? Self)?.xalign != xalign {
|
||||||
|
gtk_editable_set_alignment(widget, xalign)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -272,7 +288,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +295,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
public func activatesDefault(_ activatesDefault: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatesDefault = activatesDefault
|
newSelf.activatesDefault = activatesDefault
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +302,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func cursorPosition(_ cursorPosition: Int?) -> Self {
|
public func cursorPosition(_ cursorPosition: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.cursorPosition = cursorPosition
|
newSelf.cursorPosition = cursorPosition
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,7 +309,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func editable(_ editable: Bool? = true) -> Self {
|
public func editable(_ editable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.editable = editable
|
newSelf.editable = editable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +316,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func enableUndo(_ enableUndo: Bool? = true) -> Self {
|
public func enableUndo(_ enableUndo: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.enableUndo = enableUndo
|
newSelf.enableUndo = enableUndo
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -312,7 +323,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func maxWidthChars(_ maxWidthChars: Int?) -> Self {
|
public func maxWidthChars(_ maxWidthChars: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.maxWidthChars = maxWidthChars
|
newSelf.maxWidthChars = maxWidthChars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,7 +331,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func placeholderText(_ placeholderText: String?) -> Self {
|
public func placeholderText(_ placeholderText: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.placeholderText = placeholderText
|
newSelf.placeholderText = placeholderText
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -330,7 +339,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func searchDelay(_ searchDelay: UInt?) -> Self {
|
public func searchDelay(_ searchDelay: UInt?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.searchDelay = searchDelay
|
newSelf.searchDelay = searchDelay
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,7 +346,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func selectionBound(_ selectionBound: Int?) -> Self {
|
public func selectionBound(_ selectionBound: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.selectionBound = selectionBound
|
newSelf.selectionBound = selectionBound
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +353,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func text(_ text: Binding<String>?) -> Self {
|
public func text(_ text: Binding<String>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.text = text
|
newSelf.text = text
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +360,6 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func widthChars(_ widthChars: Int?) -> Self {
|
public func widthChars(_ widthChars: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.widthChars = widthChars
|
newSelf.widthChars = widthChars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,13 +369,12 @@ if let text, newValue != text.wrappedValue {
|
|||||||
public func xalign(_ xalign: Float?) -> Self {
|
public func xalign(_ xalign: Float?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.xalign = xalign
|
newSelf.xalign = xalign
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Emitted when the entry is activated.
|
/// Emitted when the entry is activated.
|
||||||
///
|
///
|
||||||
/// The keybindings for this signal are all forms of the Enter key.
|
/// The keybindings for this signal are all forms of the <kbd>Enter</kbd> key.
|
||||||
public func activate(_ activate: @escaping () -> Void) -> Self {
|
public func activate(_ activate: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activate = activate
|
newSelf.activate = activate
|
||||||
@ -426,7 +430,7 @@ if let text, newValue != text.wrappedValue {
|
|||||||
/// Applications should connect to it, to implement moving
|
/// Applications should connect to it, to implement moving
|
||||||
/// between matches.
|
/// between matches.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Ctrl-g.
|
/// The default bindings for this signal is <kbd>Ctrl</kbd>+<kbd>g</kbd>.
|
||||||
public func nextMatch(_ nextMatch: @escaping () -> Void) -> Self {
|
public func nextMatch(_ nextMatch: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.nextMatch = nextMatch
|
newSelf.nextMatch = nextMatch
|
||||||
@ -441,7 +445,8 @@ if let text, newValue != text.wrappedValue {
|
|||||||
/// Applications should connect to it, to implement moving
|
/// Applications should connect to it, to implement moving
|
||||||
/// between matches.
|
/// between matches.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Ctrl-Shift-g.
|
/// The default bindings for this signal is
|
||||||
|
/// <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>g</kbd>.
|
||||||
public func previousMatch(_ previousMatch: @escaping () -> Void) -> Self {
|
public func previousMatch(_ previousMatch: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.previousMatch = previousMatch
|
newSelf.previousMatch = previousMatch
|
||||||
@ -471,7 +476,7 @@ if let text, newValue != text.wrappedValue {
|
|||||||
/// Applications should connect to it, to implement hiding
|
/// Applications should connect to it, to implement hiding
|
||||||
/// the search entry in this case.
|
/// the search entry in this case.
|
||||||
///
|
///
|
||||||
/// The default bindings for this signal is Escape.
|
/// The default bindings for this signal is <kbd>Escape</kbd>.
|
||||||
public func stopSearch(_ stopSearch: @escaping () -> Void) -> Self {
|
public func stopSearch(_ stopSearch: @escaping () -> Void) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.stopSearch = stopSearch
|
newSelf.stopSearch = stopSearch
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Separator.swift
|
// Separator.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -81,7 +81,6 @@ public struct Separator: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SpinRow.swift
|
// SpinRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -24,6 +24,11 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// `AdwSpinRow` has the same structure as [class@ActionRow], as well as the
|
/// `AdwSpinRow` has the same structure as [class@ActionRow], as well as the
|
||||||
/// `.spin` style class on the main node.
|
/// `.spin` style class on the main node.
|
||||||
|
///
|
||||||
|
/// ## Accessibility
|
||||||
|
///
|
||||||
|
/// `AdwSpinRow` uses an internal `GtkSpinButton` with the
|
||||||
|
/// `GTK_ACCESSIBLE_ROLE_SPIN_BUTTON` role.
|
||||||
public struct SpinRow: AdwaitaWidget {
|
public struct SpinRow: AdwaitaWidget {
|
||||||
|
|
||||||
/// Additional update functions for type extensions.
|
/// Additional update functions for type extensions.
|
||||||
@ -252,7 +257,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatableWidget = activatableWidget
|
newSelf.activatableWidget = activatableWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,7 +264,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func climbRate(_ climbRate: Double) -> Self {
|
public func climbRate(_ climbRate: Double) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.climbRate = climbRate
|
newSelf.climbRate = climbRate
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +271,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func digits(_ digits: UInt) -> Self {
|
public func digits(_ digits: UInt) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.digits = digits
|
newSelf.digits = digits
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +278,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func numeric(_ numeric: Bool? = true) -> Self {
|
public func numeric(_ numeric: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.numeric = numeric
|
newSelf.numeric = numeric
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +285,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func snapToTicks(_ snapToTicks: Bool? = true) -> Self {
|
public func snapToTicks(_ snapToTicks: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.snapToTicks = snapToTicks
|
newSelf.snapToTicks = snapToTicks
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,7 +295,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func subtitle(_ subtitle: String?) -> Self {
|
public func subtitle(_ subtitle: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,7 +305,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleLines = subtitleLines
|
newSelf.subtitleLines = subtitleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,7 +314,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleSelectable = subtitleSelectable
|
newSelf.subtitleSelectable = subtitleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -327,7 +324,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +333,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func titleLines(_ titleLines: Int?) -> Self {
|
public func titleLines(_ titleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleLines = titleLines
|
newSelf.titleLines = titleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,7 +342,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -359,7 +353,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -367,7 +360,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +367,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func value(_ value: Binding<Double>?) -> Self {
|
public func value(_ value: Binding<Double>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.value = value
|
newSelf.value = value
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -383,7 +374,6 @@ if let value, newValue != value.wrappedValue {
|
|||||||
public func wrap(_ wrap: Bool? = true) -> Self {
|
public func wrap(_ wrap: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.wrap = wrap
|
newSelf.wrap = wrap
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Spinner.swift
|
// Spinner.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -85,7 +85,6 @@ public struct Spinner: AdwaitaWidget {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +92,6 @@ public struct Spinner: AdwaitaWidget {
|
|||||||
public func spinning(_ spinning: Bool? = true) -> Self {
|
public func spinning(_ spinning: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.spinning = spinning
|
newSelf.spinning = spinning
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SplitButton.swift
|
// SplitButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -37,6 +37,17 @@ import LevenshteinTransformations
|
|||||||
/// classes matching the button contents. The nested button nodes will never
|
/// classes matching the button contents. The nested button nodes will never
|
||||||
/// contain them.
|
/// contain them.
|
||||||
///
|
///
|
||||||
|
/// ## Style classes
|
||||||
|
///
|
||||||
|
/// `AdwSplitButton` can use some of the same style classes as [class@Gtk.Button]:
|
||||||
|
///
|
||||||
|
/// - [`.suggested-action`](style-classes.html#suggested-action)
|
||||||
|
/// - [`.destructive-action`](style-classes.html#destructive-action)
|
||||||
|
/// - [`.flat`](style-classes.html#flat)
|
||||||
|
/// - [`.raised`](style-classes.html#raised)
|
||||||
|
///
|
||||||
|
/// Other style classes, like `.pill`, cannot be used.
|
||||||
|
///
|
||||||
/// ## Accessibility
|
/// ## Accessibility
|
||||||
///
|
///
|
||||||
/// `AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
/// `AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
|
||||||
@ -185,7 +196,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +206,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,7 +215,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func dropdownTooltip(_ dropdownTooltip: String?) -> Self {
|
public func dropdownTooltip(_ dropdownTooltip: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.dropdownTooltip = dropdownTooltip
|
newSelf.dropdownTooltip = dropdownTooltip
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,7 +225,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +235,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +251,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func menuModel(@ViewBuilder _ menuModel: @escaping (() -> Body)) -> Self {
|
public func menuModel(@ViewBuilder _ menuModel: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.menuModel = menuModel
|
newSelf.menuModel = menuModel
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +260,6 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// StatusPage.swift
|
// StatusPage.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -19,9 +19,18 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// `AdwStatusPage` has a main CSS node with name `statuspage`.
|
/// `AdwStatusPage` has a main CSS node with name `statuspage`.
|
||||||
///
|
///
|
||||||
|
/// When setting an [class@SpinnerPaintable] as [property@StatusPage:paintable],
|
||||||
|
/// the main nodes gains the `.spinner` style class for a more compact
|
||||||
|
/// appearance.
|
||||||
|
///
|
||||||
|
/// ## Style classes
|
||||||
|
///
|
||||||
/// `AdwStatusPage` can use the
|
/// `AdwStatusPage` can use the
|
||||||
/// [`.compact`](style-classes.html#compact-status-page) style class for when it
|
/// [`.compact`](style-classes.html#compact-status-page) style class for when it
|
||||||
/// needs to fit into a small space such a sidebar or a popover.
|
/// needs to fit into a small space such a sidebar or a popover, similar to when
|
||||||
|
/// using a spinner as the paintable.
|
||||||
|
///
|
||||||
|
/// <picture><source srcset="status-page-compact-dark.png" media="(prefers-color-scheme: dark)"><img src="status-page-compact.png" alt="status-page-compact"></picture>
|
||||||
public struct StatusPage: AdwaitaWidget {
|
public struct StatusPage: AdwaitaWidget {
|
||||||
|
|
||||||
/// Additional update functions for type extensions.
|
/// Additional update functions for type extensions.
|
||||||
@ -101,7 +110,6 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +117,6 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
public func description(_ description: String?) -> Self {
|
public func description(_ description: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.description = description
|
newSelf.description = description
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +126,6 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +135,6 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SwitchRow.swift
|
// SwitchRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -28,6 +28,10 @@ import LevenshteinTransformations
|
|||||||
///
|
///
|
||||||
/// The [property@SwitchRow:active] property should be connected to in order to
|
/// The [property@SwitchRow:active] property should be connected to in order to
|
||||||
/// monitor changes to the active state.
|
/// monitor changes to the active state.
|
||||||
|
///
|
||||||
|
/// ## Accessibility
|
||||||
|
///
|
||||||
|
/// `AdwSwitchRow` uses the `GTK_ACCESSIBLE_ROLE_SWITCH` role.
|
||||||
public struct SwitchRow: AdwaitaWidget {
|
public struct SwitchRow: AdwaitaWidget {
|
||||||
|
|
||||||
/// Additional update functions for type extensions.
|
/// Additional update functions for type extensions.
|
||||||
@ -197,7 +201,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
public func activatableWidget(@ViewBuilder _ activatableWidget: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.activatableWidget = activatableWidget
|
newSelf.activatableWidget = activatableWidget
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,7 +208,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func active(_ active: Binding<Bool>?) -> Self {
|
public func active(_ active: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.active = active
|
newSelf.active = active
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +218,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func subtitle(_ subtitle: String?) -> Self {
|
public func subtitle(_ subtitle: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +228,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
public func subtitleLines(_ subtitleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleLines = subtitleLines
|
newSelf.subtitleLines = subtitleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +237,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
public func subtitleSelectable(_ subtitleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitleSelectable = subtitleSelectable
|
newSelf.subtitleSelectable = subtitleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +247,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func title(_ title: String?) -> Self {
|
public func title(_ title: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +256,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func titleLines(_ titleLines: Int?) -> Self {
|
public func titleLines(_ titleLines: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleLines = titleLines
|
newSelf.titleLines = titleLines
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +265,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
public func titleSelectable(_ titleSelectable: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.titleSelectable = titleSelectable
|
newSelf.titleSelectable = titleSelectable
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +276,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
public func useMarkup(_ useMarkup: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useMarkup = useMarkup
|
newSelf.useMarkup = useMarkup
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +283,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToastOverlay.swift
|
// ToastOverlay.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -104,7 +104,6 @@ public struct ToastOverlay: AdwaitaWidget {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToggleButton.swift
|
// ToggleButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -94,7 +94,7 @@ public struct ToggleButton: AdwaitaWidget {
|
|||||||
///
|
///
|
||||||
/// The accessible role cannot be changed once set.
|
/// The accessible role cannot be changed once set.
|
||||||
var accessibleRole: String?
|
var accessibleRole: String?
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
var actionName: String?
|
var actionName: String?
|
||||||
/// If the toggle button should be pressed in.
|
/// If the toggle button should be pressed in.
|
||||||
var active: Binding<Bool>?
|
var active: Binding<Bool>?
|
||||||
@ -224,15 +224,13 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
public func accessibleRole(_ accessibleRole: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.accessibleRole = accessibleRole
|
newSelf.accessibleRole = accessibleRole
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// action-name
|
/// The name of the action with which this widget should be associated.
|
||||||
public func actionName(_ actionName: String?) -> Self {
|
public func actionName(_ actionName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.actionName = actionName
|
newSelf.actionName = actionName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,7 +238,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func active(_ active: Binding<Bool>?) -> Self {
|
public func active(_ active: Binding<Bool>?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.active = active
|
newSelf.active = active
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +251,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
public func canShrink(_ canShrink: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.canShrink = canShrink
|
newSelf.canShrink = canShrink
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,7 +258,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
public func child(@ViewBuilder _ child: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.child = child
|
newSelf.child = child
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +265,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
public func hasFrame(_ hasFrame: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.hasFrame = hasFrame
|
newSelf.hasFrame = hasFrame
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -278,7 +272,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func iconName(_ iconName: String?) -> Self {
|
public func iconName(_ iconName: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.iconName = iconName
|
newSelf.iconName = iconName
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -286,7 +279,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func label(_ label: String?) -> Self {
|
public func label(_ label: String?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.label = label
|
newSelf.label = label
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,7 +287,6 @@ if let active, newValue != active.wrappedValue {
|
|||||||
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
public func useUnderline(_ useUnderline: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.useUnderline = useUnderline
|
newSelf.useUnderline = useUnderline
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToolbarView.swift
|
// ToolbarView.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -242,7 +242,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func bottomBarHeight(_ bottomBarHeight: Int?) -> Self {
|
public func bottomBarHeight(_ bottomBarHeight: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.bottomBarHeight = bottomBarHeight
|
newSelf.bottomBarHeight = bottomBarHeight
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,7 +249,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func content(@ViewBuilder _ content: @escaping (() -> Body)) -> Self {
|
public func content(@ViewBuilder _ content: @escaping (() -> Body)) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.content = content
|
newSelf.content = content
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,7 +262,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func extendContentToBottomEdge(_ extendContentToBottomEdge: Bool? = true) -> Self {
|
public func extendContentToBottomEdge(_ extendContentToBottomEdge: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.extendContentToBottomEdge = extendContentToBottomEdge
|
newSelf.extendContentToBottomEdge = extendContentToBottomEdge
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,7 +274,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func extendContentToTopEdge(_ extendContentToTopEdge: Bool? = true) -> Self {
|
public func extendContentToTopEdge(_ extendContentToTopEdge: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.extendContentToTopEdge = extendContentToTopEdge
|
newSelf.extendContentToTopEdge = extendContentToTopEdge
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +289,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func revealBottomBars(_ revealBottomBars: Bool? = true) -> Self {
|
public func revealBottomBars(_ revealBottomBars: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.revealBottomBars = revealBottomBars
|
newSelf.revealBottomBars = revealBottomBars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +304,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func revealTopBars(_ revealTopBars: Bool? = true) -> Self {
|
public func revealTopBars(_ revealTopBars: Bool? = true) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.revealTopBars = revealTopBars
|
newSelf.revealTopBars = revealTopBars
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,7 +316,6 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
public func topBarHeight(_ topBarHeight: Int?) -> Self {
|
public func topBarHeight(_ topBarHeight: Int?) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.topBarHeight = topBarHeight
|
newSelf.topBarHeight = topBarHeight
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// WindowTitle.swift
|
// WindowTitle.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 15.08.24.
|
// Created by auto-generation on 22.10.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -88,7 +88,6 @@ public struct WindowTitle: AdwaitaWidget {
|
|||||||
public func subtitle(_ subtitle: String) -> Self {
|
public func subtitle(_ subtitle: String) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.subtitle = subtitle
|
newSelf.subtitle = subtitle
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +98,6 @@ public struct WindowTitle: AdwaitaWidget {
|
|||||||
public func title(_ title: String) -> Self {
|
public func title(_ title: String) -> Self {
|
||||||
var newSelf = self
|
var newSelf = self
|
||||||
newSelf.title = title
|
newSelf.title = title
|
||||||
|
|
||||||
return newSelf
|
return newSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,9 @@ struct GenerationConfiguration {
|
|||||||
.init(
|
.init(
|
||||||
class: "ComboRow",
|
class: "ComboRow",
|
||||||
bindings: [.init(property: "selected")],
|
bindings: [.init(property: "selected")],
|
||||||
excludeProperties: ["expression", "factory", "list-factory", "model", "selected-item"],
|
excludeProperties: [
|
||||||
|
"expression", "factory", "list-factory", "model", "selected-item", "header-factory", "search-match-mode"
|
||||||
|
],
|
||||||
cast: true
|
cast: true
|
||||||
),
|
),
|
||||||
.init(
|
.init(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user