Remove invisible unicode characters
Some checks failed
Deploy Docs / publish (push) Has been cancelled
SwiftLint / SwiftLint (push) Has been cancelled

This commit is contained in:
david-swift 2025-09-18 21:40:57 +02:00
parent d17306f195
commit 1bc36e0759
3 changed files with 15 additions and 15 deletions

View File

@ -21,7 +21,7 @@ public enum WrapMode: GtkWrapMode, RawRepresentable {
/// GTK_WRAP_WORD_CHAR /// GTK_WRAP_WORD_CHAR
case wordChar case wordChar
/// Get the GtkWrapMode. /// Get the GtkWrapMode.
public var rawValue: GtkWrapMode { public var rawValue: GtkWrapMode {
switch self { switch self {
case .none: case .none:

View File

@ -11,7 +11,7 @@ import Foundation
/// A split view. /// A split view.
struct SplitView: AdwaitaWidget { struct SplitView: AdwaitaWidget {
/// The start widget. /// The start widget.
@ViewProperty( @ViewProperty(
set: { widget, view in gtk_paned_set_start_child(.init(widget), view.cast()) }, set: { widget, view in gtk_paned_set_start_child(.init(widget), view.cast()) },
pointer: OpaquePointer.self, pointer: OpaquePointer.self,
@ -41,7 +41,7 @@ struct SplitView: AdwaitaWidget {
/// Whether the split view is vertical. /// Whether the split view is vertical.
var vertical: Bool var vertical: Bool
/// Initialize a split view. /// Initialize a split view.
/// - Parameters: /// - Parameters:
/// - splitter: The position of the splitter. /// - splitter: The position of the splitter.
/// - vertical: Whether to make the splitter vertical. /// - vertical: Whether to make the splitter vertical.
@ -53,7 +53,7 @@ struct SplitView: AdwaitaWidget {
start: Body, start: Body,
end: Body end: Body
) { ) {
self.vertical = vertical self.vertical = vertical
self.splitter = splitter self.splitter = splitter
self.start = start self.start = start
self.end = end self.end = end
@ -69,11 +69,11 @@ struct SplitView: AdwaitaWidget {
/// A horizontal split view. /// A horizontal split view.
public struct HSplitView: SimpleView { public struct HSplitView: SimpleView {
/// The splitter. /// The splitter.
@Binding var splitter: Int @Binding var splitter: Int
/// The start widget. /// The start widget.
var start: Body var start: Body
/// The end widget. /// The end widget.
var end: Body var end: Body
/// The view. /// The view.
@ -81,7 +81,7 @@ public struct HSplitView: SimpleView {
SplitView(splitter: $splitter, vertical: false, start: start, end: end) SplitView(splitter: $splitter, vertical: false, start: start, end: end)
} }
/// Initialize a horizontal split view. /// Initialize a horizontal split view.
/// - Parameters: /// - Parameters:
/// - splitter: The position of the splitter. /// - splitter: The position of the splitter.
/// - start: The start widget. /// - start: The start widget.
@ -101,11 +101,11 @@ public struct HSplitView: SimpleView {
/// A vertical split view. /// A vertical split view.
public struct VSplitView: SimpleView { public struct VSplitView: SimpleView {
/// The splitter. /// The splitter.
@Binding var splitter: Int @Binding var splitter: Int
/// The start widget. /// The start widget.
var start: Body var start: Body
/// The end widget. /// The end widget.
var end: Body var end: Body
/// The view. /// The view.
@ -113,7 +113,7 @@ public struct VSplitView: SimpleView {
SplitView(splitter: $splitter, vertical: true, start: start, end: end) SplitView(splitter: $splitter, vertical: true, start: start, end: end)
} }
/// Initialize a vertical split view. /// Initialize a vertical split view.
/// - Parameters: /// - Parameters:
/// - splitter: The position of the splitter. /// - splitter: The position of the splitter.
/// - start: The start widget. /// - start: The start widget.

View File

@ -57,11 +57,11 @@ public struct TextView: AdwaitaWidget {
/// The padding. /// The padding.
var padding: Int var padding: Int
/// The affected edges. /// The affected edges.
var paddingEdges: Set<Edge> var paddingEdges: Set<Edge>
/// Set the inner padding on a text view. /// Set the inner padding on a text view.
/// - Parameter pointer: The text view. /// - Parameter pointer: The text view.
func set(_ pointer: OpaquePointer) { func set(_ pointer: OpaquePointer) {
if paddingEdges.contains(.top) { if paddingEdges.contains(.top) {
gtk_text_view_set_top_margin(pointer.cast(), padding.cInt) gtk_text_view_set_top_margin(pointer.cast(), padding.cInt)