Skip to content

Commit

Permalink
Add since widget pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
can-lehmann committed Mar 28, 2024
1 parent 8254267 commit 3421b08
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 435 deletions.
17 changes: 17 additions & 0 deletions docs/widgets_adwaita.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Libadwaita Widgets


Some widgets are only available when linking against later libadwaita versions.
Set the target libadwaita version by passing `-d:adwminor=<Minor Version>`.



## AdwWindow

```nim
Expand Down Expand Up @@ -304,6 +309,8 @@ ComboRow:
renderable EntryRow of PreferencesRow
```

Since: `AdwVersion >= (1, 2)`

###### Fields

- All fields from [PreferencesRow](#PreferencesRow)
Expand Down Expand Up @@ -341,6 +348,8 @@ renderable PasswordEntryRow of EntryRow

An `EntryRow` that hides the user input

Since: `AdwVersion >= (1, 2)`

###### Fields

- All fields from [EntryRow](#EntryRow)
Expand Down Expand Up @@ -417,6 +426,8 @@ Flap:
renderable OverlaySplitView of BaseWidget
```

Since: `AdwVersion >= (1, 4)`

###### Fields

- All fields from [BaseWidget](#BaseWidget)
Expand Down Expand Up @@ -536,6 +547,8 @@ renderable StatusPage of BaseWidget
renderable AboutWindow
```

Since: `AdwVersion >= (1, 2)`

###### Fields

- `applicationName: string`
Expand Down Expand Up @@ -584,6 +597,8 @@ AboutWindow:
renderable SwitchRow of ActionRow
```

Since: `AdwVersion >= (1, 4)`

###### Fields

- All fields from [ActionRow](#ActionRow)
Expand All @@ -602,6 +617,8 @@ renderable Banner of BaseWidget

A rectangular Box taking up the entire vailable width with an optional button.

Since: `AdwVersion >= (1, 3)`

###### Fields

- All fields from [BaseWidget](#BaseWidget)
Expand Down
Loading

0 comments on commit 3421b08

Please sign in to comment.