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.
Add support for auto-generated widget bindings
Additionally fix an update problem occurring with custom views
- Loading branch information
1 parent
e5b5459
commit d8de611
Showing
158 changed files
with
13,296 additions
and
3,047 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,44 @@ | ||
// | ||
// Alignment.swift | ||
// Adwaita | ||
// | ||
// Created by david-swift on 21.01.24. | ||
// | ||
|
||
import CAdw | ||
|
||
/// The alignment for a widget. | ||
public enum Alignment: Int { | ||
|
||
/// The widget will fill the available space. | ||
case fill | ||
/// The widget will start at the beginning of the available space. | ||
case start | ||
/// The widget will end at the end of the available space. | ||
case end | ||
/// The widget will be centered in the available space. | ||
case center | ||
/// The widget will be baseline aligned in the available space. | ||
case baselineFill | ||
/// The widget will be baseline aligned at the start of the available space. | ||
case baselineCenter | ||
|
||
/// Get the GtkAlign alignment. | ||
public var cAlign: GtkAlign { | ||
switch self { | ||
case .fill: | ||
return GTK_ALIGN_FILL | ||
case .start: | ||
return GTK_ALIGN_START | ||
case .end: | ||
return GTK_ALIGN_END | ||
case .center: | ||
return GTK_ALIGN_CENTER | ||
case .baselineFill: | ||
return GTK_ALIGN_BASELINE_FILL | ||
case .baselineCenter: | ||
return GTK_ALIGN_BASELINE_CENTER | ||
} | ||
} | ||
|
||
} |
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,20 @@ | ||
// | ||
// Edge.swift | ||
// Adwaita | ||
// | ||
// Created by david-swift on 21.01.24. | ||
// | ||
|
||
/// The edges for a widget. | ||
public enum Edge { | ||
|
||
/// The leading (start) edge. | ||
case leading | ||
/// The trailing (end) edge. | ||
case trailing | ||
/// The top edge. | ||
case top | ||
/// The bottom edge. | ||
case bottom | ||
|
||
} |
Oops, something went wrong.