Merge pull request #4 from pcwalton/wrap_owned

Add CGFont::wrap_owned
This commit is contained in:
Jack Moffitt
2013-05-02 19:27:24 -07:00
+7
View File
@@ -31,6 +31,13 @@ pub struct CGFont {
}
impl CGFont {
/// Convenience method to make it easier to wrap external `CGFont` instances.
pub fn wrap_owned(font: CGFontRef) -> CGFont {
CGFont {
contents: CFWrapper::wrap_owned(font)
}
}
/// Convenience method to make it easier to wrap external `CGFont` instances.
pub fn wrap_shared(font: CGFontRef) -> CGFont {
CGFont {