Add some CoreGraphics bindings

This commit is contained in:
Brian Anderson
2012-05-31 15:26:15 -07:00
parent cff7503084
commit 478f61bb68
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// FIXME: Should be bindgenned
import libc::{c_void, c_char, size_t};
#[nolink]
native mod cg {
fn CGDataProviderCreateWithFilename(filename: *c_char) -> CGDataProviderRef;
fn CGDataProviderCreateWithData(info: *c_void,
data: *c_void,
size: size_t,
releaseData: CGDataProviderReleaseDataCallback
) -> CGDataProviderRef;
fn CGDataProviderRelease(provider: CGDataProviderRef);
fn CGFontCreateWithDataProvider(provider: CGDataProviderRef) -> CGFontRef;
}
type CGFontRef = *c_void;
type CGDataProviderRef = *c_void;
type CGDataProviderReleaseDataCallback = *c_void;
+1
View File
@@ -12,3 +12,4 @@ use std;
mod appkit;
mod base;
mod foundation;
mod cg;