Skip to content

drewcrawford/coregraphicsr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages