Author: rmottola
Date: Mon Aug 24 23:46:27 2015
New Revision: 38927

URL: http://svn.gna.org/viewcvs/gnustep?rev=38927&view=rev
Log:
implement some CGPath functions

Added:
    devmodules/dev-libs/mica/GNUmakefile.preamble
    devmodules/dev-libs/mica/Sources/CGPath.m
Modified:
    devmodules/dev-libs/mica/GNUmakefile
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h
    devmodules/dev-libs/mica/Sources/CGColorSpace.m

Modified: devmodules/dev-libs/mica/GNUmakefile
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/GNUmakefile?rev=38927&r1=38926&r2=38927&view=diff
==============================================================================
--- devmodules/dev-libs/mica/GNUmakefile        (original)
+++ devmodules/dev-libs/mica/GNUmakefile        Mon Aug 24 23:46:27 2015
@@ -38,7 +38,8 @@
 # Class files
 #
 Mica_OBJC_FILES = \
-
+Sources/CGColorSpace.m \
+Sources/CGPath.m \
 
 #
 # Makefiles

Added: devmodules/dev-libs/mica/GNUmakefile.preamble
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/GNUmakefile.preamble?rev=38927&view=auto
==============================================================================
--- devmodules/dev-libs/mica/GNUmakefile.preamble       (added)
+++ devmodules/dev-libs/mica/GNUmakefile.preamble       Mon Aug 24 23:46:27 2015
@@ -0,0 +1,25 @@
+#
+# GNUmakefile.preamble - 
+#
+
+# Additional flags to pass to the preprocessor
+ADDITIONAL_CPPFLAGS += 
+
+# Additional flags to pass to Objective C compiler
+ADDITIONAL_OBJCFLAGS += 
+
+# Additional flags to pass to C compiler
+ADDITIONAL_CFLAGS += 
+
+# Additional flags to pass to the linker
+ADDITIONAL_LDFLAGS +=  
+
+# Additional include directories the compiler should search
+# this is a hack, a header should be searched for differently
+ADDITIONAL_INCLUDE_DIRS += -I./Headers
+
+# Additional library directories the linker should search
+ADDITIONAL_LIB_DIRS += 
+
+# Additional GUI libraries to link
+ADDITIONAL_GUI_LIBS += 

Modified: devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h?rev=38927&r1=38926&r2=38927&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h        
(original)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h        Mon Aug 
24 23:46:27 2015
@@ -27,6 +27,8 @@
 #ifndef COLORSPACE_H_
 #define COLORSPACE_H_
 
+#include <stdint.h> /* for int32_t and similar types */
+
 // FXIME perhaps temporary
 typedef const struct __CFString *CFStringRef;
 

Modified: devmodules/dev-libs/mica/Sources/CGColorSpace.m
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Sources/CGColorSpace.m?rev=38927&r1=38926&r2=38927&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Sources/CGColorSpace.m     (original)
+++ devmodules/dev-libs/mica/Sources/CGColorSpace.m     Mon Aug 24 23:46:27 2015
@@ -26,6 +26,8 @@
 
 #include <CoreGraphics/CGColorSpace.h>
 
+#import <Foundation/Foundation.h>
+
 CGColorSpaceRef CGColorSpaceCreateWithName ( CFStringRef name )
 {
   // FIXME this is a stub

Added: devmodules/dev-libs/mica/Sources/CGPath.m
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Sources/CGPath.m?rev=38927&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Sources/CGPath.m   (added)
+++ devmodules/dev-libs/mica/Sources/CGPath.m   Mon Aug 24 23:46:27 2015
@@ -0,0 +1,53 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGPath.m
+
+   Copyright (C) 2015 Free Software Foundation, Inc.
+
+   Written by:  Riccardo Mottola <[email protected]>
+
+   This file is part of the Mica Framework.
+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02111 USA.
+   */
+
+#import <CoreGraphics/CGPath.h>
+
+#import <AppKit/NSBezierPath.h>
+
+void CGPathRelease
+(
+ CGPathRef path
+ )
+{
+  NSBezierPath *nsPath;
+
+  nsPath = path;
+  if (nsPath)
+    [nsPath release];
+}
+
+void CGPathRetain
+(
+ CGPathRef path
+ )
+{
+  NSBezierPath *nsPath;
+
+  nsPath = path;
+  if (nsPath)
+    [nsPath retain];
+}


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to