Enhance support for signals
This commit is contained in:
parent
db8d667238
commit
8d05d22dc6
@ -41,6 +41,10 @@ The app icon.
|
|||||||
|
|
||||||
The app's website.
|
The app's website.
|
||||||
|
|
||||||
|
### `issues`
|
||||||
|
|
||||||
|
The link for opening issues.
|
||||||
|
|
||||||
### `path`
|
### `path`
|
||||||
|
|
||||||
The path to the app data file.
|
The path to the app data file.
|
||||||
@ -74,6 +78,12 @@ Set the app's website.
|
|||||||
- Parameter url: The app's website.
|
- Parameter url: The app's website.
|
||||||
- Returns: The window.
|
- Returns: The window.
|
||||||
|
|
||||||
|
### `issues(_:)`
|
||||||
|
|
||||||
|
Set the app's website.
|
||||||
|
- Parameter url: The URL to the issue tracker.
|
||||||
|
- Returns: The window.
|
||||||
|
|
||||||
### `createWindow(app:)`
|
### `createWindow(app:)`
|
||||||
|
|
||||||
Get the storage for the window.
|
Get the storage for the window.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ActionRow.swift
|
// ActionRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -145,7 +145,7 @@ public struct ActionRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated") {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
activated()
|
activated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Avatar.swift
|
// Avatar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Banner.swift
|
// Banner.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -86,7 +86,7 @@ public struct Banner: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let buttonClicked {
|
if let buttonClicked {
|
||||||
storage.connectSignal(name: "button-clicked") {
|
storage.connectSignal(name: "button-clicked", argCount: 0) {
|
||||||
buttonClicked()
|
buttonClicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Bin.swift
|
// Bin.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Box.swift
|
// Box.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Button.swift
|
// Button.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -108,12 +108,12 @@ public struct Button: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let clicked {
|
if let clicked {
|
||||||
storage.connectSignal(name: "clicked") {
|
storage.connectSignal(name: "clicked", argCount: 0) {
|
||||||
clicked()
|
clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ButtonContent.swift
|
// ButtonContent.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Carousel.swift
|
// Carousel.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -95,7 +95,7 @@ public struct Carousel<Element>: Widget where Element: Identifiable {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let pageChanged {
|
if let pageChanged {
|
||||||
storage.connectSignal(name: "page-changed") {
|
storage.connectSignal(name: "page-changed", argCount: 1) {
|
||||||
pageChanged()
|
pageChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// CenterBox.swift
|
// CenterBox.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// CheckButton.swift
|
// CheckButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -140,12 +140,12 @@ public struct CheckButton: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let toggled {
|
if let toggled {
|
||||||
storage.connectSignal(name: "toggled") {
|
storage.connectSignal(name: "toggled", argCount: 0) {
|
||||||
toggled()
|
toggled()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Clamp.swift
|
// Clamp.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ComboRow.swift
|
// ComboRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -172,7 +172,7 @@ public struct ComboRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated") {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
activated()
|
activated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// EntryRow.swift
|
// EntryRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -131,12 +131,12 @@ public struct EntryRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let apply {
|
if let apply {
|
||||||
storage.connectSignal(name: "apply") {
|
storage.connectSignal(name: "apply", argCount: 0) {
|
||||||
apply()
|
apply()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let entryActivated {
|
if let entryActivated {
|
||||||
storage.connectSignal(name: "entry-activated") {
|
storage.connectSignal(name: "entry-activated", argCount: 0) {
|
||||||
entryActivated()
|
entryActivated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ExpanderRow.swift
|
// ExpanderRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// HeaderBar.swift
|
// HeaderBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Label.swift
|
// Label.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -297,7 +297,7 @@ public struct Label: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let copyClipboard {
|
if let copyClipboard {
|
||||||
storage.connectSignal(name: "copy-clipboard") {
|
storage.connectSignal(name: "copy-clipboard", argCount: 0) {
|
||||||
copyClipboard()
|
copyClipboard()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// LevelBar.swift
|
// LevelBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -162,7 +162,7 @@ public struct LevelBar: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let offsetChanged {
|
if let offsetChanged {
|
||||||
storage.connectSignal(name: "offset-changed") {
|
storage.connectSignal(name: "offset-changed", argCount: 1) {
|
||||||
offsetChanged()
|
offsetChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// LinkButton.swift
|
// LinkButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -111,12 +111,12 @@ public struct LinkButton: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let clicked {
|
if let clicked {
|
||||||
storage.connectSignal(name: "clicked") {
|
storage.connectSignal(name: "clicked", argCount: 0) {
|
||||||
clicked()
|
clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ListBox.swift
|
// ListBox.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -143,42 +143,42 @@ public struct ListBox<Element>: Widget where Element: Identifiable {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activateCursorRow {
|
if let activateCursorRow {
|
||||||
storage.connectSignal(name: "activate-cursor-row") {
|
storage.connectSignal(name: "activate-cursor-row", argCount: 0) {
|
||||||
activateCursorRow()
|
activateCursorRow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let moveCursor {
|
if let moveCursor {
|
||||||
storage.connectSignal(name: "move-cursor") {
|
storage.connectSignal(name: "move-cursor", argCount: 4) {
|
||||||
moveCursor()
|
moveCursor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let rowActivated {
|
if let rowActivated {
|
||||||
storage.connectSignal(name: "row-activated") {
|
storage.connectSignal(name: "row-activated", argCount: 1) {
|
||||||
rowActivated()
|
rowActivated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let rowSelected {
|
if let rowSelected {
|
||||||
storage.connectSignal(name: "row-selected") {
|
storage.connectSignal(name: "row-selected", argCount: 1) {
|
||||||
rowSelected()
|
rowSelected()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let selectAll {
|
if let selectAll {
|
||||||
storage.connectSignal(name: "select-all") {
|
storage.connectSignal(name: "select-all", argCount: 0) {
|
||||||
selectAll()
|
selectAll()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let selectedRowsChanged {
|
if let selectedRowsChanged {
|
||||||
storage.connectSignal(name: "selected-rows-changed") {
|
storage.connectSignal(name: "selected-rows-changed", argCount: 0) {
|
||||||
selectedRowsChanged()
|
selectedRowsChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let toggleCursorRow {
|
if let toggleCursorRow {
|
||||||
storage.connectSignal(name: "toggle-cursor-row") {
|
storage.connectSignal(name: "toggle-cursor-row", argCount: 0) {
|
||||||
toggleCursorRow()
|
toggleCursorRow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let unselectAll {
|
if let unselectAll {
|
||||||
storage.connectSignal(name: "unselect-all") {
|
storage.connectSignal(name: "unselect-all", argCount: 0) {
|
||||||
unselectAll()
|
unselectAll()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Menu.swift
|
// Menu.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -151,7 +151,7 @@ public struct Menu: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Overlay.swift
|
// Overlay.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -106,7 +106,7 @@ public struct Overlay: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let getChildPosition {
|
if let getChildPosition {
|
||||||
storage.connectSignal(name: "get-child-position") {
|
storage.connectSignal(name: "get-child-position", argCount: 2) {
|
||||||
getChildPosition()
|
getChildPosition()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// OverlaySplitView.swift
|
// OverlaySplitView.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PasswordEntryRow.swift
|
// PasswordEntryRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -116,12 +116,12 @@ public struct PasswordEntryRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let apply {
|
if let apply {
|
||||||
storage.connectSignal(name: "apply") {
|
storage.connectSignal(name: "apply", argCount: 0) {
|
||||||
apply()
|
apply()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let entryActivated {
|
if let entryActivated {
|
||||||
storage.connectSignal(name: "entry-activated") {
|
storage.connectSignal(name: "entry-activated", argCount: 0) {
|
||||||
entryActivated()
|
entryActivated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesGroup.swift
|
// PreferencesGroup.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesPage.swift
|
// PreferencesPage.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// PreferencesRow.swift
|
// PreferencesRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ProgressBar.swift
|
// ProgressBar.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ScrolledWindow.swift
|
// ScrolledWindow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -190,22 +190,22 @@ public struct ScrolledWindow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let edgeOvershot {
|
if let edgeOvershot {
|
||||||
storage.connectSignal(name: "edge-overshot") {
|
storage.connectSignal(name: "edge-overshot", argCount: 1) {
|
||||||
edgeOvershot()
|
edgeOvershot()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let edgeReached {
|
if let edgeReached {
|
||||||
storage.connectSignal(name: "edge-reached") {
|
storage.connectSignal(name: "edge-reached", argCount: 1) {
|
||||||
edgeReached()
|
edgeReached()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let moveFocusOut {
|
if let moveFocusOut {
|
||||||
storage.connectSignal(name: "move-focus-out") {
|
storage.connectSignal(name: "move-focus-out", argCount: 1) {
|
||||||
moveFocusOut()
|
moveFocusOut()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let scrollChild {
|
if let scrollChild {
|
||||||
storage.connectSignal(name: "scroll-child") {
|
storage.connectSignal(name: "scroll-child", argCount: 2) {
|
||||||
scrollChild()
|
scrollChild()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SpinRow.swift
|
// SpinRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -164,22 +164,22 @@ public struct SpinRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let input {
|
if let input {
|
||||||
storage.connectSignal(name: "input") {
|
storage.connectSignal(name: "input", argCount: 1) {
|
||||||
input()
|
input()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let output {
|
if let output {
|
||||||
storage.connectSignal(name: "output") {
|
storage.connectSignal(name: "output", argCount: 0) {
|
||||||
output()
|
output()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let wrapped {
|
if let wrapped {
|
||||||
storage.connectSignal(name: "wrapped") {
|
storage.connectSignal(name: "wrapped", argCount: 0) {
|
||||||
wrapped()
|
wrapped()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated") {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
activated()
|
activated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Spinner.swift
|
// Spinner.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SplitButton.swift
|
// SplitButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -136,12 +136,12 @@ public struct SplitButton: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let clicked {
|
if let clicked {
|
||||||
storage.connectSignal(name: "clicked") {
|
storage.connectSignal(name: "clicked", argCount: 0) {
|
||||||
clicked()
|
clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// StatusPage.swift
|
// StatusPage.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// SwitchRow.swift
|
// SwitchRow.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -139,7 +139,7 @@ public struct SwitchRow: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let activated {
|
if let activated {
|
||||||
storage.connectSignal(name: "activated") {
|
storage.connectSignal(name: "activated", argCount: 0) {
|
||||||
activated()
|
activated()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToastOverlay.swift
|
// ToastOverlay.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToggleButton.swift
|
// ToggleButton.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
@ -160,17 +160,17 @@ public struct ToggleButton: Widget {
|
|||||||
/// - updateProperties: Whether to update the view's properties.
|
/// - updateProperties: Whether to update the view's properties.
|
||||||
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
public func update(_ storage: ViewStorage, modifiers: [(View) -> View], updateProperties: Bool) {
|
||||||
if let toggled {
|
if let toggled {
|
||||||
storage.connectSignal(name: "toggled") {
|
storage.connectSignal(name: "toggled", argCount: 0) {
|
||||||
toggled()
|
toggled()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let activate {
|
if let activate {
|
||||||
storage.connectSignal(name: "activate") {
|
storage.connectSignal(name: "activate", argCount: 0) {
|
||||||
activate()
|
activate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let clicked {
|
if let clicked {
|
||||||
storage.connectSignal(name: "clicked") {
|
storage.connectSignal(name: "clicked", argCount: 0) {
|
||||||
clicked()
|
clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// ToolbarView.swift
|
// ToolbarView.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// WindowTitle.swift
|
// WindowTitle.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by auto-generation on 27.01.24.
|
// Created by auto-generation on 29.01.24.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CAdw
|
import CAdw
|
||||||
|
|||||||
@ -12,6 +12,8 @@ struct Signal: Decodable {
|
|||||||
var name: String
|
var name: String
|
||||||
/// The signal's documentation.
|
/// The signal's documentation.
|
||||||
var doc: String?
|
var doc: String?
|
||||||
|
/// The signal's parameters.
|
||||||
|
var parameters: Parameters?
|
||||||
|
|
||||||
/// Generate the signal's property.
|
/// Generate the signal's property.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
@ -56,7 +58,7 @@ struct Signal: Decodable {
|
|||||||
return """
|
return """
|
||||||
|
|
||||||
if let \(name) {
|
if let \(name) {
|
||||||
storage.connectSignal(name: "\(self.name)") {
|
storage.connectSignal(name: "\(self.name)", argCount: \(parameters?.parameters.count ?? 0)) {
|
||||||
\(name)()
|
\(name)()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user