Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

22 lines (19 loc) · 1.23 KB

Provides select Rust bindings for Apple Core Graphics. May be compared to objrs_frameworks_core_graphics and core-graphics.

Part of the objr expanded universe, distinctive features of coregraphicsr:

  • Zero-cost abstractions. Calling this library should perform identically to calling CoreGraphics from Swift/ObjC applications.
    • Most of the magic happens in objr which provide cutting-edge high-performance primitives which are used here extensively.
  • Safe APIs. Where possible APIs are designed with safe abstractions to provide familiar guarantees to Rust developers
  • Low-level. These bindings assume familiarity with bound APIs and are not documented separately.
  • Free for noncommercial or "small commercial" use.

Status

The following APIs are implemented

  • CGPoint, CGFloat, CGSize, and CGRect
  • CGColor (greyscale only currently)
  • CGDirectDisplayID
  • CGColorSpace
  • CGImageAlphaInfo
  • CGContext, CGBitmapContext
  • CGDataProvider, CGDataProviderCreateDirect
  • CGImage