Cairo__FontFace.st
changeset 63 054f0513ea65
parent 45 8ee53c41a084
child 88 9d51db2ba641
--- a/Cairo__FontFace.st	Sat Mar 05 20:22:21 2016 +0000
+++ b/Cairo__FontFace.st	Mon Mar 21 22:28:05 2016 +0000
@@ -134,6 +134,18 @@
     ^ CPrimitives cairo_font_face_destroy: self
 
     "Modified: / 17-02-2016 / 19:54:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+reference
+    "Increases the reference count on the receiver by one. This prevents the
+     receiver from being destroyed until a matching call to #destroy is made.
+     
+     This method must be called whenever Cairo documentation says so,
+     check comment on return value for methods returning a Cairo object"
+
+    CPrimitives cairo_font_face_reference: self.
+
+    "Modified: / 05-03-2016 / 10:32:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !FontFace class methodsFor:'documentation'!