Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Export Libadwaita types used in public functions
Browse files Browse the repository at this point in the history
One doesn't have to import Libadwaita unless they want to use an
unimplemented widget
  • Loading branch information
david-swift committed Jan 4, 2024
1 parent 503cf3a commit 8911cc8
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/Reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@

## Typealiases

- [Alignment](typealiases/Alignment.md)
- [Body](typealiases/Body.md)
- [Edge](typealiases/Edge.md)
- [GTUIApplicationWindow](typealiases/GTUIApplicationWindow.md)
- [GTUIWindow](typealiases/GTUIWindow.md)
- [Icon](typealiases/Icon.md)
- [MenuBuilder](typealiases/MenuBuilder.md)
- [MenuContent](typealiases/MenuContent.md)
- [Scene](typealiases/Scene.md)
- [SceneBuilder](typealiases/SceneBuilder.md)
- [Transition](typealiases/Transition.md)

This file was generated by [SourceDocs](https://github.com/eneko/SourceDocs)
5 changes: 5 additions & 0 deletions Documentation/Reference/typealiases/Alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**TYPEALIAS**

# `Alignment`

The alignment for a widget.
5 changes: 5 additions & 0 deletions Documentation/Reference/typealiases/Edge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**TYPEALIAS**

# `Edge`

The edges of a widget.
5 changes: 5 additions & 0 deletions Documentation/Reference/typealiases/Icon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**TYPEALIAS**

# `Icon`

An icon.
5 changes: 5 additions & 0 deletions Documentation/Reference/typealiases/Transition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**TYPEALIAS**

# `Transition`

A transition for a stack.
9 changes: 9 additions & 0 deletions Sources/Adwaita/View/Modifiers/InspectorWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,12 @@ extension View {
}

}

/// The alignment for a widget.
public typealias Alignment = Libadwaita.Alignment
/// The edges of a widget.
public typealias Edge = Libadwaita.Edge
/// An icon.
public typealias Icon = Libadwaita.Icon
/// A transition for a stack.
public typealias Transition = Libadwaita.Transition

0 comments on commit 8911cc8

Please sign in to comment.