virtualization-sys 0.1.2

FFI to Apple's Virtualization framework, through swift-bridge. Use the `virtualization` crate instead.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===----------------------------------------------------------------------===//
// `CGSize`, which Virtualization's displays take and return. It crosses as
// the shared struct `BridgedCGSize`.
//===----------------------------------------------------------------------===//

import CoreGraphics

extension BridgedCGSize {
  init(_ size: CGSize) {
    self.init(width: Double(size.width), height: Double(size.height))
  }
}

extension CGSize {
  init(_ size: BridgedCGSize) {
    self.init(width: size.width, height: size.height)
  }
}