This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2611e0c
commit cbbf08b
Showing
40 changed files
with
1,143 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
**STRUCT** | ||
|
||
# `HStack` | ||
|
||
A horizontal GtkBox equivalent. | ||
|
||
## Properties | ||
### `content` | ||
|
||
The content. | ||
|
||
## Methods | ||
### `init(content:)` | ||
|
||
Initialize a `HStack`. | ||
- Parameter content: The view content. | ||
|
||
### `update(_:)` | ||
|
||
Update a view storage. | ||
- Parameter storage: The view storage. | ||
|
||
### `container()` | ||
|
||
Get a view storage. | ||
- Returns: The view storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
**STRUCT** | ||
|
||
# `List` | ||
|
||
A list box widget. | ||
|
||
## Properties | ||
### `elements` | ||
|
||
The elements. | ||
|
||
### `content` | ||
|
||
The content. | ||
|
||
### `selection` | ||
|
||
The identifier of the selected element. | ||
|
||
## Methods | ||
### `init(_:selection:content:)` | ||
|
||
Initialize `ForEach`. | ||
- Parameters: | ||
- elements: The elements. | ||
- selection: The identifier of the selected element. | ||
- content: The view for an element. | ||
|
||
### `update(_:)` | ||
|
||
Update a view storage. | ||
- Parameter storage: The view storage. | ||
|
||
### `container()` | ||
|
||
Get a view storage. | ||
- Returns: The view storage. | ||
|
||
### `updateSelection(box:)` | ||
|
||
Update the list's selection. | ||
- Parameter box: The list box. | ||
|
||
### `sidebarStyle()` | ||
|
||
Add the "navigation-sidebar" style class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
**STRUCT** | ||
|
||
# `NavigationSplitView` | ||
|
||
A navigation split view widget. | ||
|
||
## Properties | ||
### `sidebar` | ||
|
||
The sidebar's content. | ||
|
||
### `content` | ||
|
||
The split view's main content. | ||
|
||
### `sidebarID` | ||
|
||
The sidebar content's id. | ||
|
||
### `contentID` | ||
|
||
The main content's id. | ||
|
||
## Methods | ||
### `init(sidebar:content:)` | ||
|
||
Initialize a navigation split view. | ||
- Parameters: | ||
- sidebar: The sidebar content. | ||
- content: The main content. | ||
|
||
### `container()` | ||
|
||
Get the container of the navigation split view widget. | ||
- Returns: The view storage. | ||
|
||
### `update(_:)` | ||
|
||
Update the view storage of the navigation split view widget. | ||
- Parameter storage: The view storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
**STRUCT** | ||
|
||
# `ScrollView` | ||
|
||
A GtkScrolledWindow equivalent. | ||
|
||
## Properties | ||
### `content` | ||
|
||
The content. | ||
|
||
## Methods | ||
### `init(content:)` | ||
|
||
Initialize a `ScrollView`. | ||
- Parameter content: The view content. | ||
|
||
### `update(_:)` | ||
|
||
Update a view storage. | ||
- Parameter storage: The view storage. | ||
|
||
### `container()` | ||
|
||
Get a view storage. | ||
- Returns: The view storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
**STRUCT** | ||
|
||
# `StateWrapper` | ||
|
||
A storage for `@State` properties. | ||
|
||
## Properties | ||
### `content` | ||
|
||
The content. | ||
|
||
### `state` | ||
|
||
The state information (from properties with the `State` wrapper). | ||
|
||
## Methods | ||
### `init(content:)` | ||
|
||
Initialize a `StateWrapper`. | ||
- Parameter content: The view content. | ||
|
||
### `init(content:state:)` | ||
|
||
Initialize a `StateWrapper`. | ||
- Parameters: | ||
- content: The view content. | ||
- state: The state information. | ||
|
||
### `update(_:)` | ||
|
||
Update a view storage. | ||
- Parameter storage: The view storage. | ||
|
||
### `container()` | ||
|
||
Get a view storage. | ||
- Returns: The view storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
**STRUCT** | ||
|
||
# `StatusPage` | ||
|
||
A status page widget. | ||
|
||
## Properties | ||
### `title` | ||
|
||
The title. | ||
|
||
### `description` | ||
|
||
The description. | ||
|
||
### `icon` | ||
|
||
The icon. | ||
|
||
### `content` | ||
|
||
Additional content. | ||
|
||
## Methods | ||
### `init(_:icon:description:content:)` | ||
|
||
Initialize a status page widget. | ||
- Parameters: | ||
- title: The title. | ||
- icon: The icon. | ||
- description: Additional details. | ||
- content: Additional content. | ||
|
||
### `update(_:)` | ||
|
||
Update the view storage of the text widget. | ||
- Parameter storage: The view storage. | ||
|
||
### `container()` | ||
|
||
Get the container of the text widget. | ||
- Returns: The view storage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
**STRUCT** | ||
|
||
# `ToolbarView` | ||
|
||
A toolbar view widget. | ||
|
||
## Properties | ||
### `content` | ||
|
||
The sidebar's content. | ||
|
||
### `toolbar` | ||
|
||
The toolbars. | ||
|
||
### `bottom` | ||
|
||
Whether the toolbars are bottom toolbars. | ||
|
||
### `visible` | ||
|
||
Whether the toolbar is visible. | ||
|
||
### `toolbarID` | ||
|
||
The identifier of the toolbar content. | ||
|
||
## Methods | ||
### `container()` | ||
|
||
Get the container of the toolbar view widget. | ||
- Returns: The view storage. | ||
|
||
### `update(_:)` | ||
|
||
Update the view storage of the toolbar view widget. | ||
- Parameter storage: The view storage. |
Oops, something went wrong.