Cairo__GraphicsContext.st
changeset 46 e624554ca9a3
parent 43 1006839761af
child 51 5293f2b851ab
--- a/Cairo__GraphicsContext.st	Fri Feb 19 14:25:58 2016 +0000
+++ b/Cairo__GraphicsContext.st	Wed Feb 24 09:13:04 2016 +0000
@@ -47,6 +47,30 @@
 
 !GraphicsContext methodsFor:'cairo api - paths'!
 
+antialias
+    "Gets the current shape antialiasing mode, as set Cairo::GraphicsContext>#antialias"
+
+    ^ CPrimitives cairo_get_antialias: self
+
+    "Created: / 24-02-2016 / 00:03:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+antialias: antialias
+    "Set the antialiasing mode of the rasterizer used for drawing shapes. This 
+     value is a hint, and a particular backend may or may not support a particular 
+     value. At the current time, no backend supports CAIRO_ANTIALIAS_SUBPIXEL when 
+     drawing shapes.
+
+     Note that this option does not affect text rendering, instead 
+     see Cairo::FontOptions>>#antialias."
+
+
+    CPrimitives cairo_set_antialias: self _:antialias.
+    self statusCheck.
+
+    "Created: / 24-02-2016 / 00:02:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 arcNegativeX:x y:y radius:r from:startAngle to:stopAngle 
     CPrimitives 
         cairo_arc_negative:self