-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SwiftWin32: further adopt static libraries on 5.7+
Swift 5.7.0 enables static libraries for non-standard library cases. Use this to extract the CoreGraphics interfaces out of the primary library.
- Loading branch information
Showing
57 changed files
with
260 additions
and
32 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
4 changes: 4 additions & 0 deletions
4
...es/SwiftWin32/Animation and Haptics/Property-Based Animations/CubicTimingParameters.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2021 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// The timing information for animations in the form of a cubic Bézier curve. | ||
public class CubicTimingParameters { | ||
// MARK - Initializing a Cubic Timing Parameters Object | ||
|
4 changes: 4 additions & 0 deletions
4
...s/SwiftWin32/Animation and Haptics/Property-Based Animations/SpringTimingParameters.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2021 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// The timing information for animations that mimics the behavior of a spring. | ||
public class SpringTimingParameters { | ||
// MARK - Initializing a Spring Timing Parameters Object | ||
|
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
4 changes: 4 additions & 0 deletions
4
Sources/SwiftWin32/Animation and Haptics/ViewControllerContextTransitioning.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2021 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// The keys you use to identify the view controllers involved in a transition. | ||
public struct TransitionContextViewControllerKey: Equatable, Hashable, RawRepresentable { | ||
public typealias RawValue = String | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]>. | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
public class LayoutGuide { | ||
// MARK - Working with Layout Guides | ||
|
||
|
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// An object that can become focused. | ||
public protocol FocusItem: FocusEnvironment { | ||
// MARK - Determining Focusability | ||
|
4 changes: 4 additions & 0 deletions
4
Sources/SwiftWin32/Focus-Based Navigation/FocusItemContainer.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// The container responsible for providing geometric context to focus items | ||
/// within a given focus environment. | ||
public protocol FocusItemContainer { | ||
|
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
4 changes: 4 additions & 0 deletions
4
Sources/SwiftWin32/Menus and Shortcuts/ContextMenuInteraction.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
extension ContextMenuInteraction { | ||
/// Constants that describe the appearance of the menu. | ||
public enum Appearance: Int { | ||
|
4 changes: 4 additions & 0 deletions
4
Sources/SwiftWin32/Menus and Shortcuts/ContextMenuInteractionDelegate.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// The methods for providing the set of actions to perform on your content, | ||
/// and for customizing the preview of that content. | ||
public protocol ContextMenuInteractionDelegate: AnyObject { | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// An object that specifies the container view to use for animations. | ||
public class PreviewTarget { | ||
/// Creating a Preview Target Object | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
public class TargetedPreview { | ||
/// Creting a Targeted Preview Object | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
public class PointerRegion { | ||
// MARK - Configuring a Region | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
Sources/SwiftWin32/Pointer Interactions/PointerRegionRequest.swift
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
/// An object to describe the pointer's location in the interaction's view. | ||
public class PointerRegionRequest { | ||
// MARK - Inspecting the Region Request | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
extension PointerEffect { | ||
/// An effect that defines how to apply a tint to a view during a pointer | ||
/// interaction. | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright © 2020 Saleem Abdulrasool <[email protected]> | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#if swift(>=5.7) | ||
import CoreGraphics | ||
#endif | ||
|
||
extension Size { | ||
internal init<Integer: FixedWidthInteger>(width: Integer, height: Integer) { | ||
self.init(width: Int(width), height: Int(height)) | ||
|
Oops, something went wrong.