diff --git a/.swiftlint.yml b/.swiftlint.yml index 00935e2..9a036b1 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -138,7 +138,7 @@ file_header: missing_docs: warning: [internal, private] error: [open, public] - excludes_extensions: false + excludes_extensions: true excludes_inherited_types: false type_contents_order: order: diff --git a/Sources/Adwaita/View/Dialogs/AboutDialog.swift b/Sources/Adwaita/View/Dialogs/AboutDialog.swift index 0fbc644..aab8d1a 100644 --- a/Sources/Adwaita/View/Dialogs/AboutDialog.swift +++ b/Sources/Adwaita/View/Dialogs/AboutDialog.swift @@ -35,7 +35,7 @@ struct AboutDialog: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = child.storage(data: data, type: type) @@ -48,7 +48,7 @@ struct AboutDialog: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/Dialogs/AlertDialog.swift b/Sources/Adwaita/View/Dialogs/AlertDialog.swift index 593372d..a79a380 100644 --- a/Sources/Adwaita/View/Dialogs/AlertDialog.swift +++ b/Sources/Adwaita/View/Dialogs/AlertDialog.swift @@ -74,7 +74,7 @@ public struct AlertDialog: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -90,7 +90,7 @@ public struct AlertDialog: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/Dialogs/Dialog.swift b/Sources/Adwaita/View/Dialogs/Dialog.swift index 310655d..fdfe234 100644 --- a/Sources/Adwaita/View/Dialogs/Dialog.swift +++ b/Sources/Adwaita/View/Dialogs/Dialog.swift @@ -33,7 +33,7 @@ struct Dialog: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let child = child.storage(data: data, type: type) @@ -47,7 +47,7 @@ struct Dialog: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/Dialogs/FileDialog.swift b/Sources/Adwaita/View/Dialogs/FileDialog.swift index ce81fb9..805ae90 100644 --- a/Sources/Adwaita/View/Dialogs/FileDialog.swift +++ b/Sources/Adwaita/View/Dialogs/FileDialog.swift @@ -31,7 +31,7 @@ struct FileDialog: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let child = child.storage(data: data, type: type) @@ -45,7 +45,7 @@ struct FileDialog: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/ForEach.swift b/Sources/Adwaita/View/ForEach.swift index b33f488..e25ed3e 100644 --- a/Sources/Adwaita/View/ForEach.swift +++ b/Sources/Adwaita/View/ForEach.swift @@ -28,7 +28,7 @@ public struct ForEach: AdwaitaWidget where Element: Identifiable { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -46,7 +46,7 @@ public struct ForEach: AdwaitaWidget where Element: Identifiable { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/Forms/ComboRow+.swift b/Sources/Adwaita/View/Forms/ComboRow+.swift index 7e7f809..684dbdc 100644 --- a/Sources/Adwaita/View/Forms/ComboRow+.swift +++ b/Sources/Adwaita/View/Forms/ComboRow+.swift @@ -11,7 +11,9 @@ import LevenshteinTransformations /// A row for selecting an element out of a list of elements. extension ComboRow { + /// The identifier for the values. static var values: String { "values" } + /// The identifier for the string list. static var stringList: String { "string-list" } /// Initialize a combo row. @@ -43,6 +45,11 @@ extension ComboRow { } } + /// Update the combo row's content. + /// - Parameters: + /// - storage: The view storage. + /// - values: The elements. + /// - element: The type of the elements. static func updateContent( storage: ViewStorage, values: [Element], diff --git a/Sources/Adwaita/View/Forms/EntryRow+.swift b/Sources/Adwaita/View/Forms/EntryRow+.swift index 0e1fa6c..bd3f3ff 100644 --- a/Sources/Adwaita/View/Forms/EntryRow+.swift +++ b/Sources/Adwaita/View/Forms/EntryRow+.swift @@ -9,8 +9,6 @@ import CAdw extension EntryRow { - static var textField: String { "text" } - /// Initialize an entry row. /// - Parameters: /// - title: The row's title. diff --git a/Sources/Adwaita/View/Forms/PasswordEntryRow+.swift b/Sources/Adwaita/View/Forms/PasswordEntryRow+.swift index 93ecc21..88f44a5 100644 --- a/Sources/Adwaita/View/Forms/PasswordEntryRow+.swift +++ b/Sources/Adwaita/View/Forms/PasswordEntryRow+.swift @@ -9,8 +9,6 @@ import CAdw extension PasswordEntryRow { - static var textField: String { "text" } - /// Initialize an entry row. /// - Parameters: /// - title: The row's title. diff --git a/Sources/Adwaita/View/Generated/ActionRow.swift b/Sources/Adwaita/View/Generated/ActionRow.swift index 8441254..a65327f 100644 --- a/Sources/Adwaita/View/Generated/ActionRow.swift +++ b/Sources/Adwaita/View/Generated/ActionRow.swift @@ -110,7 +110,7 @@ public struct ActionRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_action_row_new()?.opaque()) @@ -143,7 +143,7 @@ public struct ActionRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activated { storage.connectSignal(name: "activated", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/AspectFrame.swift b/Sources/Adwaita/View/Generated/AspectFrame.swift index 713754f..ae1d3de 100644 --- a/Sources/Adwaita/View/Generated/AspectFrame.swift +++ b/Sources/Adwaita/View/Generated/AspectFrame.swift @@ -55,7 +55,7 @@ public struct AspectFrame: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_aspect_frame_new(0.5, 0.5, ratio, 0)?.opaque()) @@ -76,7 +76,7 @@ public struct AspectFrame: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Avatar.swift b/Sources/Adwaita/View/Generated/Avatar.swift index 9692722..216bcc3 100644 --- a/Sources/Adwaita/View/Generated/Avatar.swift +++ b/Sources/Adwaita/View/Generated/Avatar.swift @@ -60,7 +60,7 @@ public struct Avatar: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_avatar_new(size.cInt, text, showInitials.cBool)?.opaque()) @@ -77,7 +77,7 @@ public struct Avatar: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Banner.swift b/Sources/Adwaita/View/Generated/Banner.swift index 37305bb..4edb047 100644 --- a/Sources/Adwaita/View/Generated/Banner.swift +++ b/Sources/Adwaita/View/Generated/Banner.swift @@ -64,7 +64,7 @@ public struct Banner: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_banner_new(title)?.opaque()) @@ -81,7 +81,7 @@ public struct Banner: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let buttonClicked { storage.connectSignal(name: "button-clicked", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Bin.swift b/Sources/Adwaita/View/Generated/Bin.swift index fa98f3c..d1260e6 100644 --- a/Sources/Adwaita/View/Generated/Bin.swift +++ b/Sources/Adwaita/View/Generated/Bin.swift @@ -34,7 +34,7 @@ public struct Bin: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_bin_new()?.opaque()) @@ -55,7 +55,7 @@ public struct Bin: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Box.swift b/Sources/Adwaita/View/Generated/Box.swift index ed6d6d1..55db63c 100644 --- a/Sources/Adwaita/View/Generated/Box.swift +++ b/Sources/Adwaita/View/Generated/Box.swift @@ -72,7 +72,7 @@ public struct Box: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing.cInt)?.opaque()) @@ -101,7 +101,7 @@ public struct Box: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Button.swift b/Sources/Adwaita/View/Generated/Button.swift index 9fe3f03..fb7d714 100644 --- a/Sources/Adwaita/View/Generated/Button.swift +++ b/Sources/Adwaita/View/Generated/Button.swift @@ -88,7 +88,7 @@ public struct Button: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_button_new()?.opaque()) @@ -109,7 +109,7 @@ public struct Button: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/ButtonContent.swift b/Sources/Adwaita/View/Generated/ButtonContent.swift index 722b23b..eeb7aeb 100644 --- a/Sources/Adwaita/View/Generated/ButtonContent.swift +++ b/Sources/Adwaita/View/Generated/ButtonContent.swift @@ -77,7 +77,7 @@ public struct ButtonContent: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_button_content_new()?.opaque()) @@ -94,7 +94,7 @@ public struct ButtonContent: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Carousel.swift b/Sources/Adwaita/View/Generated/Carousel.swift index c96ae3e..e0b3223 100644 --- a/Sources/Adwaita/View/Generated/Carousel.swift +++ b/Sources/Adwaita/View/Generated/Carousel.swift @@ -75,7 +75,7 @@ public struct Carousel: AdwaitaWidget where Element: Identifiable { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_carousel_new()?.opaque()) @@ -92,7 +92,7 @@ public struct Carousel: AdwaitaWidget where Element: Identifiable { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let pageChanged { storage.connectSignal(name: "page-changed", argCount: 1) { diff --git a/Sources/Adwaita/View/Generated/CenterBox.swift b/Sources/Adwaita/View/Generated/CenterBox.swift index 3e381d9..bb7256c 100644 --- a/Sources/Adwaita/View/Generated/CenterBox.swift +++ b/Sources/Adwaita/View/Generated/CenterBox.swift @@ -84,7 +84,7 @@ public struct CenterBox: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_center_box_new()?.opaque()) @@ -113,7 +113,7 @@ public struct CenterBox: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/CheckButton.swift b/Sources/Adwaita/View/Generated/CheckButton.swift index 684693b..1a50b23 100644 --- a/Sources/Adwaita/View/Generated/CheckButton.swift +++ b/Sources/Adwaita/View/Generated/CheckButton.swift @@ -117,7 +117,7 @@ public struct CheckButton: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_check_button_new()?.opaque()) @@ -138,7 +138,7 @@ public struct CheckButton: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Clamp.swift b/Sources/Adwaita/View/Generated/Clamp.swift index 52cf479..0ec14ce 100644 --- a/Sources/Adwaita/View/Generated/Clamp.swift +++ b/Sources/Adwaita/View/Generated/Clamp.swift @@ -62,7 +62,7 @@ public struct Clamp: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_clamp_new()?.opaque()) @@ -83,7 +83,7 @@ public struct Clamp: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/ComboRow.swift b/Sources/Adwaita/View/Generated/ComboRow.swift index 6e042de..6161245 100644 --- a/Sources/Adwaita/View/Generated/ComboRow.swift +++ b/Sources/Adwaita/View/Generated/ComboRow.swift @@ -129,7 +129,7 @@ public struct ComboRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_combo_row_new()?.opaque()) @@ -162,7 +162,7 @@ public struct ComboRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activated { storage.connectSignal(name: "activated", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/EntryRow.swift b/Sources/Adwaita/View/Generated/EntryRow.swift index 6e3a822..e5e18dd 100644 --- a/Sources/Adwaita/View/Generated/EntryRow.swift +++ b/Sources/Adwaita/View/Generated/EntryRow.swift @@ -99,7 +99,7 @@ public struct EntryRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_entry_row_new()?.opaque()) @@ -128,7 +128,7 @@ public struct EntryRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let apply { storage.connectSignal(name: "apply", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/ExpanderRow.swift b/Sources/Adwaita/View/Generated/ExpanderRow.swift index 722e4a3..c2ff260 100644 --- a/Sources/Adwaita/View/Generated/ExpanderRow.swift +++ b/Sources/Adwaita/View/Generated/ExpanderRow.swift @@ -91,7 +91,7 @@ public struct ExpanderRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_expander_row_new()?.opaque()) @@ -126,7 +126,7 @@ public struct ExpanderRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Fixed.swift b/Sources/Adwaita/View/Generated/Fixed.swift index 1e7ded8..f02c9d7 100644 --- a/Sources/Adwaita/View/Generated/Fixed.swift +++ b/Sources/Adwaita/View/Generated/Fixed.swift @@ -64,7 +64,7 @@ public struct Fixed: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_fixed_new()?.opaque()) @@ -81,7 +81,7 @@ public struct Fixed: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/FlowBox.swift b/Sources/Adwaita/View/Generated/FlowBox.swift index 15a5a24..a366829 100644 --- a/Sources/Adwaita/View/Generated/FlowBox.swift +++ b/Sources/Adwaita/View/Generated/FlowBox.swift @@ -148,7 +148,7 @@ public struct FlowBox: AdwaitaWidget where Element: Identifiable { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_flow_box_new()?.opaque()) @@ -165,7 +165,7 @@ public struct FlowBox: AdwaitaWidget where Element: Identifiable { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activateCursorChild { storage.connectSignal(name: "activate-cursor-child", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/HeaderBar.swift b/Sources/Adwaita/View/Generated/HeaderBar.swift index 70fb722..a95c843 100644 --- a/Sources/Adwaita/View/Generated/HeaderBar.swift +++ b/Sources/Adwaita/View/Generated/HeaderBar.swift @@ -160,7 +160,7 @@ public struct HeaderBar: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_header_bar_new()?.opaque()) @@ -193,7 +193,7 @@ public struct HeaderBar: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Label.swift b/Sources/Adwaita/View/Generated/Label.swift index c7757e7..3052784 100644 --- a/Sources/Adwaita/View/Generated/Label.swift +++ b/Sources/Adwaita/View/Generated/Label.swift @@ -277,7 +277,7 @@ public struct Label: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_label_new(label)?.opaque()) @@ -298,7 +298,7 @@ public struct Label: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let copyClipboard { storage.connectSignal(name: "copy-clipboard", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/LevelBar.swift b/Sources/Adwaita/View/Generated/LevelBar.swift index 459b44d..bfe368a 100644 --- a/Sources/Adwaita/View/Generated/LevelBar.swift +++ b/Sources/Adwaita/View/Generated/LevelBar.swift @@ -144,7 +144,7 @@ public struct LevelBar: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_level_bar_new()?.opaque()) @@ -161,7 +161,7 @@ public struct LevelBar: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let offsetChanged { storage.connectSignal(name: "offset-changed", argCount: 1) { diff --git a/Sources/Adwaita/View/Generated/LinkButton.swift b/Sources/Adwaita/View/Generated/LinkButton.swift index 81147fb..c4a86bd 100644 --- a/Sources/Adwaita/View/Generated/LinkButton.swift +++ b/Sources/Adwaita/View/Generated/LinkButton.swift @@ -91,7 +91,7 @@ public struct LinkButton: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_link_button_new(uri)?.opaque()) @@ -112,7 +112,7 @@ public struct LinkButton: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/ListBox.swift b/Sources/Adwaita/View/Generated/ListBox.swift index 464eb17..113cdee 100644 --- a/Sources/Adwaita/View/Generated/ListBox.swift +++ b/Sources/Adwaita/View/Generated/ListBox.swift @@ -125,7 +125,7 @@ public struct ListBox: AdwaitaWidget where Element: Identifiable { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_list_box_new()?.opaque()) @@ -142,7 +142,7 @@ public struct ListBox: AdwaitaWidget where Element: Identifiable { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activateCursorRow { storage.connectSignal(name: "activate-cursor-row", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Menu.swift b/Sources/Adwaita/View/Generated/Menu.swift index 262d67b..cd32afa 100644 --- a/Sources/Adwaita/View/Generated/Menu.swift +++ b/Sources/Adwaita/View/Generated/Menu.swift @@ -119,7 +119,7 @@ public struct Menu: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_menu_button_new()?.opaque()) @@ -145,7 +145,7 @@ public struct Menu: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/NavigationView.swift b/Sources/Adwaita/View/Generated/NavigationView.swift index 77c3306..22491b8 100644 --- a/Sources/Adwaita/View/Generated/NavigationView.swift +++ b/Sources/Adwaita/View/Generated/NavigationView.swift @@ -170,7 +170,7 @@ public struct NavigationView: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_navigation_view_new()?.opaque()) @@ -187,7 +187,7 @@ public struct NavigationView: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let getNextPage { storage.connectSignal(name: "get-next-page", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Overlay.swift b/Sources/Adwaita/View/Generated/Overlay.swift index 8126f3b..6a664a4 100644 --- a/Sources/Adwaita/View/Generated/Overlay.swift +++ b/Sources/Adwaita/View/Generated/Overlay.swift @@ -78,7 +78,7 @@ public struct Overlay: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_overlay_new()?.opaque()) @@ -105,7 +105,7 @@ public struct Overlay: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let getChildPosition { storage.connectSignal(name: "get-child-position", argCount: 2) { diff --git a/Sources/Adwaita/View/Generated/OverlaySplitView.swift b/Sources/Adwaita/View/Generated/OverlaySplitView.swift index 199ec64..cb486ca 100644 --- a/Sources/Adwaita/View/Generated/OverlaySplitView.swift +++ b/Sources/Adwaita/View/Generated/OverlaySplitView.swift @@ -178,7 +178,7 @@ public struct OverlaySplitView: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_overlay_split_view_new()?.opaque()) @@ -203,7 +203,7 @@ public struct OverlaySplitView: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/PasswordEntryRow.swift b/Sources/Adwaita/View/Generated/PasswordEntryRow.swift index 323ef84..6f4e17d 100644 --- a/Sources/Adwaita/View/Generated/PasswordEntryRow.swift +++ b/Sources/Adwaita/View/Generated/PasswordEntryRow.swift @@ -84,7 +84,7 @@ public struct PasswordEntryRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_password_entry_row_new()?.opaque()) @@ -113,7 +113,7 @@ public struct PasswordEntryRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let apply { storage.connectSignal(name: "apply", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Picture.swift b/Sources/Adwaita/View/Generated/Picture.swift index 56bd5ee..9ab7d2f 100644 --- a/Sources/Adwaita/View/Generated/Picture.swift +++ b/Sources/Adwaita/View/Generated/Picture.swift @@ -79,7 +79,7 @@ public struct Picture: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_picture_new()?.opaque()) @@ -96,7 +96,7 @@ public struct Picture: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/Popover.swift b/Sources/Adwaita/View/Generated/Popover.swift index 2a80db1..72f8b62 100644 --- a/Sources/Adwaita/View/Generated/Popover.swift +++ b/Sources/Adwaita/View/Generated/Popover.swift @@ -107,7 +107,7 @@ public struct Popover: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_popover_new()?.opaque()) @@ -132,7 +132,7 @@ public struct Popover: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activateDefault { storage.connectSignal(name: "activate-default", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/PreferencesGroup.swift b/Sources/Adwaita/View/Generated/PreferencesGroup.swift index 0380822..37fc002 100644 --- a/Sources/Adwaita/View/Generated/PreferencesGroup.swift +++ b/Sources/Adwaita/View/Generated/PreferencesGroup.swift @@ -64,7 +64,7 @@ public struct PreferencesGroup: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_preferences_group_new()?.opaque()) @@ -91,7 +91,7 @@ public struct PreferencesGroup: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/PreferencesPage.swift b/Sources/Adwaita/View/Generated/PreferencesPage.swift index d32c855..b56023b 100644 --- a/Sources/Adwaita/View/Generated/PreferencesPage.swift +++ b/Sources/Adwaita/View/Generated/PreferencesPage.swift @@ -49,7 +49,7 @@ public struct PreferencesPage: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_preferences_page_new()?.opaque()) @@ -72,7 +72,7 @@ public struct PreferencesPage: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/PreferencesRow.swift b/Sources/Adwaita/View/Generated/PreferencesRow.swift index 23fa40c..7d1159b 100644 --- a/Sources/Adwaita/View/Generated/PreferencesRow.swift +++ b/Sources/Adwaita/View/Generated/PreferencesRow.swift @@ -49,7 +49,7 @@ public struct PreferencesRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_preferences_row_new()?.opaque()) @@ -66,7 +66,7 @@ public struct PreferencesRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/ProgressBar.swift b/Sources/Adwaita/View/Generated/ProgressBar.swift index 79a8572..86be3eb 100644 --- a/Sources/Adwaita/View/Generated/ProgressBar.swift +++ b/Sources/Adwaita/View/Generated/ProgressBar.swift @@ -92,7 +92,7 @@ public struct ProgressBar: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_progress_bar_new()?.opaque()) @@ -109,7 +109,7 @@ public struct ProgressBar: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/ScrolledWindow.swift b/Sources/Adwaita/View/Generated/ScrolledWindow.swift index 3589f05..ce38231 100644 --- a/Sources/Adwaita/View/Generated/ScrolledWindow.swift +++ b/Sources/Adwaita/View/Generated/ScrolledWindow.swift @@ -172,7 +172,7 @@ public struct ScrolledWindow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_scrolled_window_new()?.opaque()) @@ -193,7 +193,7 @@ public struct ScrolledWindow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let edgeOvershot { storage.connectSignal(name: "edge-overshot", argCount: 1) { diff --git a/Sources/Adwaita/View/Generated/SearchBar.swift b/Sources/Adwaita/View/Generated/SearchBar.swift index ad1c518..f33b2ba 100644 --- a/Sources/Adwaita/View/Generated/SearchBar.swift +++ b/Sources/Adwaita/View/Generated/SearchBar.swift @@ -79,7 +79,7 @@ public struct SearchBar: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_search_bar_new()?.opaque()) @@ -104,7 +104,7 @@ public struct SearchBar: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/SearchEntry.swift b/Sources/Adwaita/View/Generated/SearchEntry.swift index b941e4c..bc57c4c 100644 --- a/Sources/Adwaita/View/Generated/SearchEntry.swift +++ b/Sources/Adwaita/View/Generated/SearchEntry.swift @@ -162,7 +162,7 @@ public struct SearchEntry: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_search_entry_new()?.opaque()) @@ -179,7 +179,7 @@ public struct SearchEntry: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Separator.swift b/Sources/Adwaita/View/Generated/Separator.swift index c9405e0..5069afd 100644 --- a/Sources/Adwaita/View/Generated/Separator.swift +++ b/Sources/Adwaita/View/Generated/Separator.swift @@ -43,7 +43,7 @@ public struct Separator: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_separator_new(GTK_ORIENTATION_VERTICAL)?.opaque()) @@ -60,7 +60,7 @@ public struct Separator: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/SpinRow.swift b/Sources/Adwaita/View/Generated/SpinRow.swift index d274cd0..bb9d5e2 100644 --- a/Sources/Adwaita/View/Generated/SpinRow.swift +++ b/Sources/Adwaita/View/Generated/SpinRow.swift @@ -121,7 +121,7 @@ public struct SpinRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_spin_row_new(nil, climbRate, digits.cInt)?.opaque()) @@ -154,7 +154,7 @@ public struct SpinRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activated { storage.connectSignal(name: "activated", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/Spinner.swift b/Sources/Adwaita/View/Generated/Spinner.swift index dc575c9..04c9a3c 100644 --- a/Sources/Adwaita/View/Generated/Spinner.swift +++ b/Sources/Adwaita/View/Generated/Spinner.swift @@ -44,7 +44,7 @@ public struct Spinner: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_spinner_new()?.opaque()) @@ -61,7 +61,7 @@ public struct Spinner: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/SplitButton.swift b/Sources/Adwaita/View/Generated/SplitButton.swift index e8ea2ce..26be10d 100644 --- a/Sources/Adwaita/View/Generated/SplitButton.swift +++ b/Sources/Adwaita/View/Generated/SplitButton.swift @@ -103,7 +103,7 @@ public struct SplitButton: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_split_button_new()?.opaque()) @@ -129,7 +129,7 @@ public struct SplitButton: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/StatusPage.swift b/Sources/Adwaita/View/Generated/StatusPage.swift index 4371a25..112b917 100644 --- a/Sources/Adwaita/View/Generated/StatusPage.swift +++ b/Sources/Adwaita/View/Generated/StatusPage.swift @@ -49,7 +49,7 @@ public struct StatusPage: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_status_page_new()?.opaque()) @@ -70,7 +70,7 @@ public struct StatusPage: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/SwitchRow.swift b/Sources/Adwaita/View/Generated/SwitchRow.swift index dae6151..5600c6b 100644 --- a/Sources/Adwaita/View/Generated/SwitchRow.swift +++ b/Sources/Adwaita/View/Generated/SwitchRow.swift @@ -96,7 +96,7 @@ public struct SwitchRow: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_switch_row_new()?.opaque()) @@ -129,7 +129,7 @@ public struct SwitchRow: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activated { storage.connectSignal(name: "activated", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/ToastOverlay.swift b/Sources/Adwaita/View/Generated/ToastOverlay.swift index 00a75be..00885ba 100644 --- a/Sources/Adwaita/View/Generated/ToastOverlay.swift +++ b/Sources/Adwaita/View/Generated/ToastOverlay.swift @@ -61,7 +61,7 @@ public struct ToastOverlay: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_toast_overlay_new()?.opaque()) @@ -82,7 +82,7 @@ public struct ToastOverlay: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/ToggleButton.swift b/Sources/Adwaita/View/Generated/ToggleButton.swift index 19133be..49e24d5 100644 --- a/Sources/Adwaita/View/Generated/ToggleButton.swift +++ b/Sources/Adwaita/View/Generated/ToggleButton.swift @@ -137,7 +137,7 @@ public struct ToggleButton: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(gtk_toggle_button_new()?.opaque()) @@ -158,7 +158,7 @@ public struct ToggleButton: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { if let activate { storage.connectSignal(name: "activate", argCount: 0) { diff --git a/Sources/Adwaita/View/Generated/ToolbarView.swift b/Sources/Adwaita/View/Generated/ToolbarView.swift index 746b19e..db66f3d 100644 --- a/Sources/Adwaita/View/Generated/ToolbarView.swift +++ b/Sources/Adwaita/View/Generated/ToolbarView.swift @@ -146,7 +146,7 @@ public struct ToolbarView: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_toolbar_view_new()?.opaque()) @@ -179,7 +179,7 @@ public struct ToolbarView: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/Generated/WindowTitle.swift b/Sources/Adwaita/View/Generated/WindowTitle.swift index 2c2ec61..0dcd60d 100644 --- a/Sources/Adwaita/View/Generated/WindowTitle.swift +++ b/Sources/Adwaita/View/Generated/WindowTitle.swift @@ -44,7 +44,7 @@ public struct WindowTitle: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(adw_window_title_new(title, subtitle)?.opaque()) @@ -61,7 +61,7 @@ public struct WindowTitle: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData { storage.modify { widget in diff --git a/Sources/Adwaita/View/NavigationSplitView.swift b/Sources/Adwaita/View/NavigationSplitView.swift index 79e3c82..2e325aa 100644 --- a/Sources/Adwaita/View/NavigationSplitView.swift +++ b/Sources/Adwaita/View/NavigationSplitView.swift @@ -36,7 +36,7 @@ public struct NavigationSplitView: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -72,7 +72,7 @@ public struct NavigationSplitView: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/VStack.swift b/Sources/Adwaita/View/VStack.swift index 37de091..602fe3a 100644 --- a/Sources/Adwaita/View/VStack.swift +++ b/Sources/Adwaita/View/VStack.swift @@ -18,6 +18,10 @@ extension VStack { self.init(horizontal: false, content: content) } + /// Initialize a `VStack`. + /// - Parameters: + /// - horizontal: Whether the box is horizontal. + /// - content: The view content. init(horizontal: Bool, @ViewBuilder content: @escaping () -> Body) { self.init(spacing: 0) self = self.append(content) @@ -50,7 +54,7 @@ public struct VStackWrapper: AdwaitaWidget, Wrapper { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -68,7 +72,7 @@ public struct VStackWrapper: AdwaitaWidget, Wrapper { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/ViewStack.swift b/Sources/Adwaita/View/ViewStack.swift index 858d662..fc79ccc 100644 --- a/Sources/Adwaita/View/ViewStack.swift +++ b/Sources/Adwaita/View/ViewStack.swift @@ -44,7 +44,7 @@ public struct ViewStack: AdwaitaWidget { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -61,7 +61,7 @@ public struct ViewStack: AdwaitaWidget { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Adwaita/View/ViewSwitcher.swift b/Sources/Adwaita/View/ViewSwitcher.swift index b37a873..b87ca9a 100644 --- a/Sources/Adwaita/View/ViewSwitcher.swift +++ b/Sources/Adwaita/View/ViewSwitcher.swift @@ -26,7 +26,7 @@ public struct ViewSwitcher: AdwaitaWidget where Element: ViewSwitcherOp /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container( data: WidgetData, @@ -54,7 +54,7 @@ public struct ViewSwitcher: AdwaitaWidget where Element: ViewSwitcherOp /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update( _ storage: ViewStorage, data: WidgetData, diff --git a/Sources/Demo/IdleDemo.swift b/Sources/Demo/IdleDemo.swift index d97d644..013d048 100644 --- a/Sources/Demo/IdleDemo.swift +++ b/Sources/Demo/IdleDemo.swift @@ -11,10 +11,8 @@ import Adwaita struct IdleDemo: View { - @State(id: "progress") - private var progress = 0.0 - @State(id: "active-process") - private var activeProcess = false + @State private var progress = 0.0 + @State private var activeProcess = false let max = 500.0 let delayFactor = 5_000.0 let maxWidth = 300 diff --git a/Sources/Generation/GIR/Class.swift b/Sources/Generation/GIR/Class.swift index 343b84b..28586ab 100644 --- a/Sources/Generation/GIR/Class.swift +++ b/Sources/Generation/GIR/Class.swift @@ -95,7 +95,7 @@ struct Class: ClassLike, Decodable { /// The view storage. /// - Parameters: /// - modifiers: Modify views before being updated. - /// - type: The type of the app storage. + /// - type: The view render data type. /// - Returns: The view storage. public func container(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData { let storage = ViewStorage(\(generateInitializer(name: widgetName, config: config, namespace: namespace, configs: configs))?.opaque()) @@ -112,7 +112,7 @@ struct Class: ClassLike, Decodable { /// - storage: The storage to update. /// - modifiers: Modify views before being updated /// - updateProperties: Whether to update the view's properties. - /// - type: The type of the app storage. + /// - type: The view render data type. public func update(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {\(generateSignalModifications(config: config, genConfig: genConfig, namespace: namespace)) storage.modify { widget in \(generateBindingAssignments(config: config, genConfig: genConfig, namespace: namespace, configs: configs))