cairo: impl FromGlibPtrFull for Font{Options,Face}
@@ -167,6 +167,14 @@ impl FromGlibPtrNone<*const cairo_font_options_t> for FontOptions {
}
}
+impl FromGlibPtrFull<*mut cairo_font_options_t> for FontOptions {
+ #[inline]
+ unsafe fn from_glib_full(ptr: *mut cairo_font_options_t) -> Self {
+ assert!(!ptr.is_null());
+ FontOptions(ptr)
+ }
+}
+
impl PartialEq for FontOptions {
fn eq(&self, other: &FontOptions) -> bool {
unsafe {
@@ -272,6 +280,14 @@ impl FromGlibPtrNone<*mut cairo_font_face_t> for FontFace {
}
}
+impl FromGlibPtrFull<*mut cairo_font_face_t> for FontFace {
+ #[inline]
+ unsafe fn from_glib_full(ptr: *mut cairo_font_face_t) -> Self {
+ assert!(!ptr.is_null());
+ FontFace(ptr)
+ }
+}
+
impl Drop for FontFace {
fn drop(&mut self) {
unsafe {
