Update to most recent version of Meta
This commit is contained in:
parent
018d21ee65
commit
1680d34bb2
@ -138,7 +138,7 @@ file_header:
|
|||||||
missing_docs:
|
missing_docs:
|
||||||
warning: [internal, private]
|
warning: [internal, private]
|
||||||
error: [open, public]
|
error: [open, public]
|
||||||
excludes_extensions: false
|
excludes_extensions: true
|
||||||
excludes_inherited_types: false
|
excludes_inherited_types: false
|
||||||
type_contents_order:
|
type_contents_order:
|
||||||
order:
|
order:
|
||||||
|
|||||||
@ -35,7 +35,7 @@ struct AboutDialog: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = child.storage(data: data, type: type)
|
let storage = child.storage(data: data, type: type)
|
||||||
@ -48,7 +48,7 @@ struct AboutDialog: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
func update<Data>(
|
func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -74,7 +74,7 @@ public struct AlertDialog: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -90,7 +90,7 @@ public struct AlertDialog: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -33,7 +33,7 @@ struct Dialog: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let child = child.storage(data: data, type: type)
|
let child = child.storage(data: data, type: type)
|
||||||
@ -47,7 +47,7 @@ struct Dialog: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
func update<Data>(
|
func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -31,7 +31,7 @@ struct FileDialog: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let child = child.storage(data: data, type: type)
|
let child = child.storage(data: data, type: type)
|
||||||
@ -45,7 +45,7 @@ struct FileDialog: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
func update<Data>(
|
func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -28,7 +28,7 @@ public struct ForEach<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -46,7 +46,7 @@ public struct ForEach<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -11,7 +11,9 @@ import LevenshteinTransformations
|
|||||||
/// A row for selecting an element out of a list of elements.
|
/// A row for selecting an element out of a list of elements.
|
||||||
extension ComboRow {
|
extension ComboRow {
|
||||||
|
|
||||||
|
/// The identifier for the values.
|
||||||
static var values: String { "values" }
|
static var values: String { "values" }
|
||||||
|
/// The identifier for the string list.
|
||||||
static var stringList: String { "string-list" }
|
static var stringList: String { "string-list" }
|
||||||
|
|
||||||
/// Initialize a combo row.
|
/// 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<Element>(
|
static func updateContent<Element>(
|
||||||
storage: ViewStorage,
|
storage: ViewStorage,
|
||||||
values: [Element],
|
values: [Element],
|
||||||
|
|||||||
@ -9,8 +9,6 @@ import CAdw
|
|||||||
|
|
||||||
extension EntryRow {
|
extension EntryRow {
|
||||||
|
|
||||||
static var textField: String { "text" }
|
|
||||||
|
|
||||||
/// Initialize an entry row.
|
/// Initialize an entry row.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - title: The row's title.
|
/// - title: The row's title.
|
||||||
|
|||||||
@ -9,8 +9,6 @@ import CAdw
|
|||||||
|
|
||||||
extension PasswordEntryRow {
|
extension PasswordEntryRow {
|
||||||
|
|
||||||
static var textField: String { "text" }
|
|
||||||
|
|
||||||
/// Initialize an entry row.
|
/// Initialize an entry row.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - title: The row's title.
|
/// - title: The row's title.
|
||||||
|
|||||||
@ -110,7 +110,7 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_action_row_new()?.opaque())
|
let storage = ViewStorage(adw_action_row_new()?.opaque())
|
||||||
@ -143,7 +143,7 @@ public struct ActionRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated", argCount: 0) {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
|
|||||||
@ -55,7 +55,7 @@ public struct AspectFrame: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_aspect_frame_new(0.5, 0.5, ratio, 0)?.opaque())
|
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.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ public struct Avatar: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_avatar_new(size.cInt, text, showInitials.cBool)?.opaque())
|
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.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public struct Banner: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_banner_new(title)?.opaque())
|
let storage = ViewStorage(adw_banner_new(title)?.opaque())
|
||||||
@ -81,7 +81,7 @@ public struct Banner: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let buttonClicked {
|
if let buttonClicked {
|
||||||
storage.connectSignal(name: "button-clicked", argCount: 0) {
|
storage.connectSignal(name: "button-clicked", argCount: 0) {
|
||||||
|
|||||||
@ -34,7 +34,7 @@ public struct Bin: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_bin_new()?.opaque())
|
let storage = ViewStorage(adw_bin_new()?.opaque())
|
||||||
@ -55,7 +55,7 @@ public struct Bin: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ public struct Box: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing.cInt)?.opaque())
|
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.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public struct Button: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_button_new()?.opaque())
|
let storage = ViewStorage(gtk_button_new()?.opaque())
|
||||||
@ -109,7 +109,7 @@ public struct Button: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -77,7 +77,7 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_button_content_new()?.opaque())
|
let storage = ViewStorage(adw_button_content_new()?.opaque())
|
||||||
@ -94,7 +94,7 @@ public struct ButtonContent: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_carousel_new()?.opaque())
|
let storage = ViewStorage(adw_carousel_new()?.opaque())
|
||||||
@ -92,7 +92,7 @@ public struct Carousel<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let pageChanged {
|
if let pageChanged {
|
||||||
storage.connectSignal(name: "page-changed", argCount: 1) {
|
storage.connectSignal(name: "page-changed", argCount: 1) {
|
||||||
|
|||||||
@ -84,7 +84,7 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_center_box_new()?.opaque())
|
let storage = ViewStorage(gtk_center_box_new()?.opaque())
|
||||||
@ -113,7 +113,7 @@ public struct CenterBox: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,7 @@ public struct CheckButton: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_check_button_new()?.opaque())
|
let storage = ViewStorage(gtk_check_button_new()?.opaque())
|
||||||
@ -138,7 +138,7 @@ public struct CheckButton: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -62,7 +62,7 @@ public struct Clamp: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_clamp_new()?.opaque())
|
let storage = ViewStorage(adw_clamp_new()?.opaque())
|
||||||
@ -83,7 +83,7 @@ public struct Clamp: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -129,7 +129,7 @@ public struct ComboRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_combo_row_new()?.opaque())
|
let storage = ViewStorage(adw_combo_row_new()?.opaque())
|
||||||
@ -162,7 +162,7 @@ public struct ComboRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated", argCount: 0) {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
|
|||||||
@ -99,7 +99,7 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_entry_row_new()?.opaque())
|
let storage = ViewStorage(adw_entry_row_new()?.opaque())
|
||||||
@ -128,7 +128,7 @@ public struct EntryRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let apply {
|
if let apply {
|
||||||
storage.connectSignal(name: "apply", argCount: 0) {
|
storage.connectSignal(name: "apply", argCount: 0) {
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public struct ExpanderRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_expander_row_new()?.opaque())
|
let storage = ViewStorage(adw_expander_row_new()?.opaque())
|
||||||
@ -126,7 +126,7 @@ public struct ExpanderRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public struct Fixed: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_fixed_new()?.opaque())
|
let storage = ViewStorage(gtk_fixed_new()?.opaque())
|
||||||
@ -81,7 +81,7 @@ public struct Fixed: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -148,7 +148,7 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_flow_box_new()?.opaque())
|
let storage = ViewStorage(gtk_flow_box_new()?.opaque())
|
||||||
@ -165,7 +165,7 @@ public struct FlowBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activateCursorChild {
|
if let activateCursorChild {
|
||||||
storage.connectSignal(name: "activate-cursor-child", argCount: 0) {
|
storage.connectSignal(name: "activate-cursor-child", argCount: 0) {
|
||||||
|
|||||||
@ -160,7 +160,7 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_header_bar_new()?.opaque())
|
let storage = ViewStorage(adw_header_bar_new()?.opaque())
|
||||||
@ -193,7 +193,7 @@ public struct HeaderBar: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -277,7 +277,7 @@ public struct Label: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_label_new(label)?.opaque())
|
let storage = ViewStorage(gtk_label_new(label)?.opaque())
|
||||||
@ -298,7 +298,7 @@ public struct Label: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let copyClipboard {
|
if let copyClipboard {
|
||||||
storage.connectSignal(name: "copy-clipboard", argCount: 0) {
|
storage.connectSignal(name: "copy-clipboard", argCount: 0) {
|
||||||
|
|||||||
@ -144,7 +144,7 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_level_bar_new()?.opaque())
|
let storage = ViewStorage(gtk_level_bar_new()?.opaque())
|
||||||
@ -161,7 +161,7 @@ public struct LevelBar: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let offsetChanged {
|
if let offsetChanged {
|
||||||
storage.connectSignal(name: "offset-changed", argCount: 1) {
|
storage.connectSignal(name: "offset-changed", argCount: 1) {
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_link_button_new(uri)?.opaque())
|
let storage = ViewStorage(gtk_link_button_new(uri)?.opaque())
|
||||||
@ -112,7 +112,7 @@ public struct LinkButton: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -125,7 +125,7 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_list_box_new()?.opaque())
|
let storage = ViewStorage(gtk_list_box_new()?.opaque())
|
||||||
@ -142,7 +142,7 @@ public struct ListBox<Element>: AdwaitaWidget where Element: Identifiable {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activateCursorRow {
|
if let activateCursorRow {
|
||||||
storage.connectSignal(name: "activate-cursor-row", argCount: 0) {
|
storage.connectSignal(name: "activate-cursor-row", argCount: 0) {
|
||||||
|
|||||||
@ -119,7 +119,7 @@ public struct Menu: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_menu_button_new()?.opaque())
|
let storage = ViewStorage(gtk_menu_button_new()?.opaque())
|
||||||
@ -145,7 +145,7 @@ public struct Menu: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -170,7 +170,7 @@ public struct NavigationView: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_navigation_view_new()?.opaque())
|
let storage = ViewStorage(adw_navigation_view_new()?.opaque())
|
||||||
@ -187,7 +187,7 @@ public struct NavigationView: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let getNextPage {
|
if let getNextPage {
|
||||||
storage.connectSignal(name: "get-next-page", argCount: 0) {
|
storage.connectSignal(name: "get-next-page", argCount: 0) {
|
||||||
|
|||||||
@ -78,7 +78,7 @@ public struct Overlay: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_overlay_new()?.opaque())
|
let storage = ViewStorage(gtk_overlay_new()?.opaque())
|
||||||
@ -105,7 +105,7 @@ public struct Overlay: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let getChildPosition {
|
if let getChildPosition {
|
||||||
storage.connectSignal(name: "get-child-position", argCount: 2) {
|
storage.connectSignal(name: "get-child-position", argCount: 2) {
|
||||||
|
|||||||
@ -178,7 +178,7 @@ public struct OverlaySplitView: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_overlay_split_view_new()?.opaque())
|
let storage = ViewStorage(adw_overlay_split_view_new()?.opaque())
|
||||||
@ -203,7 +203,7 @@ public struct OverlaySplitView: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_password_entry_row_new()?.opaque())
|
let storage = ViewStorage(adw_password_entry_row_new()?.opaque())
|
||||||
@ -113,7 +113,7 @@ public struct PasswordEntryRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let apply {
|
if let apply {
|
||||||
storage.connectSignal(name: "apply", argCount: 0) {
|
storage.connectSignal(name: "apply", argCount: 0) {
|
||||||
|
|||||||
@ -79,7 +79,7 @@ public struct Picture: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_picture_new()?.opaque())
|
let storage = ViewStorage(gtk_picture_new()?.opaque())
|
||||||
@ -96,7 +96,7 @@ public struct Picture: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -107,7 +107,7 @@ public struct Popover: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_popover_new()?.opaque())
|
let storage = ViewStorage(gtk_popover_new()?.opaque())
|
||||||
@ -132,7 +132,7 @@ public struct Popover: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activateDefault {
|
if let activateDefault {
|
||||||
storage.connectSignal(name: "activate-default", argCount: 0) {
|
storage.connectSignal(name: "activate-default", argCount: 0) {
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_preferences_group_new()?.opaque())
|
let storage = ViewStorage(adw_preferences_group_new()?.opaque())
|
||||||
@ -91,7 +91,7 @@ public struct PreferencesGroup: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_preferences_page_new()?.opaque())
|
let storage = ViewStorage(adw_preferences_page_new()?.opaque())
|
||||||
@ -72,7 +72,7 @@ public struct PreferencesPage: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_preferences_row_new()?.opaque())
|
let storage = ViewStorage(adw_preferences_row_new()?.opaque())
|
||||||
@ -66,7 +66,7 @@ public struct PreferencesRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -92,7 +92,7 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_progress_bar_new()?.opaque())
|
let storage = ViewStorage(gtk_progress_bar_new()?.opaque())
|
||||||
@ -109,7 +109,7 @@ public struct ProgressBar: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,7 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_scrolled_window_new()?.opaque())
|
let storage = ViewStorage(gtk_scrolled_window_new()?.opaque())
|
||||||
@ -193,7 +193,7 @@ public struct ScrolledWindow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let edgeOvershot {
|
if let edgeOvershot {
|
||||||
storage.connectSignal(name: "edge-overshot", argCount: 1) {
|
storage.connectSignal(name: "edge-overshot", argCount: 1) {
|
||||||
|
|||||||
@ -79,7 +79,7 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_search_bar_new()?.opaque())
|
let storage = ViewStorage(gtk_search_bar_new()?.opaque())
|
||||||
@ -104,7 +104,7 @@ public struct SearchBar: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -162,7 +162,7 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_search_entry_new()?.opaque())
|
let storage = ViewStorage(gtk_search_entry_new()?.opaque())
|
||||||
@ -179,7 +179,7 @@ public struct SearchEntry: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -43,7 +43,7 @@ public struct Separator: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_separator_new(GTK_ORIENTATION_VERTICAL)?.opaque())
|
let storage = ViewStorage(gtk_separator_new(GTK_ORIENTATION_VERTICAL)?.opaque())
|
||||||
@ -60,7 +60,7 @@ public struct Separator: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -121,7 +121,7 @@ public struct SpinRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_spin_row_new(nil, climbRate, digits.cInt)?.opaque())
|
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.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated", argCount: 0) {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public struct Spinner: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_spinner_new()?.opaque())
|
let storage = ViewStorage(gtk_spinner_new()?.opaque())
|
||||||
@ -61,7 +61,7 @@ public struct Spinner: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -103,7 +103,7 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_split_button_new()?.opaque())
|
let storage = ViewStorage(adw_split_button_new()?.opaque())
|
||||||
@ -129,7 +129,7 @@ public struct SplitButton: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_status_page_new()?.opaque())
|
let storage = ViewStorage(adw_status_page_new()?.opaque())
|
||||||
@ -70,7 +70,7 @@ public struct StatusPage: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,7 @@ public struct SwitchRow: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_switch_row_new()?.opaque())
|
let storage = ViewStorage(adw_switch_row_new()?.opaque())
|
||||||
@ -129,7 +129,7 @@ public struct SwitchRow: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated", argCount: 0) {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
|
|||||||
@ -61,7 +61,7 @@ public struct ToastOverlay: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_toast_overlay_new()?.opaque())
|
let storage = ViewStorage(adw_toast_overlay_new()?.opaque())
|
||||||
@ -82,7 +82,7 @@ public struct ToastOverlay: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -137,7 +137,7 @@ public struct ToggleButton: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(gtk_toggle_button_new()?.opaque())
|
let storage = ViewStorage(gtk_toggle_button_new()?.opaque())
|
||||||
@ -158,7 +158,7 @@ public struct ToggleButton: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate", argCount: 0) {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
|
|||||||
@ -146,7 +146,7 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_toolbar_view_new()?.opaque())
|
let storage = ViewStorage(adw_toolbar_view_new()?.opaque())
|
||||||
@ -179,7 +179,7 @@ public struct ToolbarView: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public struct WindowTitle: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(adw_window_title_new(title, subtitle)?.opaque())
|
let storage = ViewStorage(adw_window_title_new(title, subtitle)?.opaque())
|
||||||
@ -61,7 +61,7 @@ public struct WindowTitle: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public struct NavigationSplitView: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -72,7 +72,7 @@ public struct NavigationSplitView: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -18,6 +18,10 @@ extension VStack {
|
|||||||
self.init(horizontal: false, content: content)
|
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) {
|
init(horizontal: Bool, @ViewBuilder content: @escaping () -> Body) {
|
||||||
self.init(spacing: 0)
|
self.init(spacing: 0)
|
||||||
self = self.append(content)
|
self = self.append(content)
|
||||||
@ -50,7 +54,7 @@ public struct VStackWrapper: AdwaitaWidget, Wrapper {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -68,7 +72,7 @@ public struct VStackWrapper: AdwaitaWidget, Wrapper {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public struct ViewStack: AdwaitaWidget {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -61,7 +61,7 @@ public struct ViewStack: AdwaitaWidget {
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -26,7 +26,7 @@ public struct ViewSwitcher<Element>: AdwaitaWidget where Element: ViewSwitcherOp
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(
|
public func container<Data>(
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
@ -54,7 +54,7 @@ public struct ViewSwitcher<Element>: AdwaitaWidget where Element: ViewSwitcherOp
|
|||||||
/// - storage: The storage to update.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(
|
public func update<Data>(
|
||||||
_ storage: ViewStorage,
|
_ storage: ViewStorage,
|
||||||
data: WidgetData,
|
data: WidgetData,
|
||||||
|
|||||||
@ -11,10 +11,8 @@ import Adwaita
|
|||||||
|
|
||||||
struct IdleDemo: View {
|
struct IdleDemo: View {
|
||||||
|
|
||||||
@State(id: "progress")
|
@State private var progress = 0.0
|
||||||
private var progress = 0.0
|
@State private var activeProcess = false
|
||||||
@State(id: "active-process")
|
|
||||||
private var activeProcess = false
|
|
||||||
let max = 500.0
|
let max = 500.0
|
||||||
let delayFactor = 5_000.0
|
let delayFactor = 5_000.0
|
||||||
let maxWidth = 300
|
let maxWidth = 300
|
||||||
|
|||||||
@ -95,7 +95,7 @@ struct Class: ClassLike, Decodable {
|
|||||||
/// The view storage.
|
/// The view storage.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - modifiers: Modify views before being updated.
|
/// - modifiers: Modify views before being updated.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
/// - Returns: The view storage.
|
/// - Returns: The view storage.
|
||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(\(generateInitializer(name: widgetName, config: config, namespace: namespace, configs: configs))?.opaque())
|
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.
|
/// - storage: The storage to update.
|
||||||
/// - modifiers: Modify views before being updated
|
/// - modifiers: Modify views before being updated
|
||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
/// - type: The type of the app storage.
|
/// - type: The view render data type.
|
||||||
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {\(generateSignalModifications(config: config, genConfig: genConfig, namespace: namespace))
|
public func update<Data>(_ storage: ViewStorage, data: WidgetData, updateProperties: Bool, type: Data.Type) where Data: ViewRenderData {\(generateSignalModifications(config: config, genConfig: genConfig, namespace: namespace))
|
||||||
storage.modify { widget in
|
storage.modify { widget in
|
||||||
\(generateBindingAssignments(config: config, genConfig: genConfig, namespace: namespace, configs: configs))
|
\(generateBindingAssignments(config: config, genConfig: genConfig, namespace: namespace, configs: configs))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user