Author: rmottola
Date: Wed Oct  7 12:39:59 2015
New Revision: 39038

URL: http://svn.gna.org/viewcvs/gnustep?rev=39038&view=rev
Log:
add line width

Modified:
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h
    devmodules/dev-libs/mica/Sources/CGContext.m

Modified: devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h?rev=39038&r1=39037&r2=39038&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h   (original)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h   Wed Oct  7 
12:39:59 2015
@@ -48,6 +48,13 @@
 void CGContextRelease( CGContextRef c);
 CGContextRef CGContextRetain( CGContextRef c);
 
+/* saving and restoring */
+
+
+/* graphic state parameters */
+
+void CGContextSetLineWidth ( CGContextRef c, CGFloat width );
+
 /* constructing paths */
 
 void CGContextAddPath ( CGContextRef c, CGPathRef path );

Modified: devmodules/dev-libs/mica/Sources/CGContext.m
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Sources/CGContext.m?rev=39038&r1=39037&r2=39038&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Sources/CGContext.m        (original)
+++ devmodules/dev-libs/mica/Sources/CGContext.m        Wed Oct  7 12:39:59 2015
@@ -44,6 +44,7 @@
 - (void)dealloc
 {
   [_path release];
+  [super dealloc];
 }
 
 - (void)setPath:(NSBezierPath *)p
@@ -91,6 +92,21 @@
   return (CGContextRef)nsGc;
 }
 
+/* parameters */
+
+void CGContextSetLineWidth
+(
+ CGContextRef c,
+ CGFloat width
+ )
+{
+  NSBezierPath *p;
+
+  p = [c path];
+  [p setLineWidth:width];
+}
+
+/* constructing */
 
 void CGContextAddPath
 (
@@ -102,6 +118,7 @@
   nsGc = c;
 }
 
+/* painting */
 
 void CGContextDrawPath
 (


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to