drewcrawford / coregraphicsr

Rust bindings for Core Graphics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Rust bindings for Core Graphics

License:Other


Languages

Language:Rust 100.0%