-
Notifications
You must be signed in to change notification settings - Fork 117
[WIP, DNM] Windows image attachments #1245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Proper support for GDI+ is blocked by swiftlang/swift#83408. |
@swift-ci test |
@swift-ci test Windows |
…usImage so that not all attachable images are forced to be UnsafeMutablePointer
Sources/Overlays/_Testing_WinSDK/Attachments/AttachableAsGDIPlusImage.swift
Outdated
Show resolved
Hide resolved
@swift-ci test |
@swift-ci test |
…an be referenced directly from Swift
@swift-ci test Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that this is a great start!
Ooh, fun SILGen crash. |
Tracking the SIL issue here: swiftlang/swift#83452 |
@swift-ci test Windows |
@swift-ci test |
@swift-ci test Linux |
@swift-ci test macOS |
Add support for attaching images on Windows if they are instances of types we can convert to
Gdiplus::Image
. Due to current limitations on Swift/C++ interop, it's not possible to attach aGdiplus::Image
directly (they get brought in as the nefariousOpaquePointer
type) but you can attach anHBITMAP
orHICON
. More types to follow.Checklist: