Author: rmottola
Date: Tue Jun 23 00:43:23 2015
New Revision: 38673

URL: http://svn.gna.org/viewcvs/gnustep?rev=38673&view=rev
Log:
add first headers of Mica

Added:
    devmodules/dev-libs/mica/
    devmodules/dev-libs/mica/GNUmakefile
    devmodules/dev-libs/mica/Headers/
    devmodules/dev-libs/mica/Headers/CoreGraphics/
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGBitmapContext.h
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGImage.h
    devmodules/dev-libs/mica/Headers/CoreGraphics/CoreGraphics.h
    devmodules/dev-libs/mica/Sources/
    devmodules/dev-libs/mica/Sources/CGColorSpace.m

Added: devmodules/dev-libs/mica/GNUmakefile
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/GNUmakefile?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/GNUmakefile        (added)
+++ devmodules/dev-libs/mica/GNUmakefile        Tue Jun 23 00:43:23 2015
@@ -0,0 +1,47 @@
+#
+# Mica makefiles
+#
+# Copyright 2015 Free Software Foundation, Inc
+# Written by:  Riccardo Mottola <[email protected]>
+#
+
+include $(GNUSTEP_MAKEFILES)/common.make
+
+#
+# Framework
+#
+VERSION = 0.1
+FRAMEWORK_NAME = Mica
+Mica_CURRENT_VERSION_NAME = 0.1
+Mica_DEPLOY_WITH_CURRENT_VERSION = yes
+
+#
+# Libraries
+#
+Mica_LIBRARIES_DEPEND_UPON += -lgnustep-base -lgnustep-gui
+
+Mica_HEADER_FILES_DIR = Headers
+#
+# Public headers (will be installed)
+#
+Mica_HEADER_FILES = \
+CoreGraphics/CGBitmapContext.h \
+CoreGraphics/CGContext.h \
+CoreGraphics/CGColorSpace.h \
+CoreGraphics/CGImage.h \
+CoreGraphics/CoreGraphics.h \
+
+
+#
+# Class files
+#
+Mica_OBJC_FILES = \
+
+
+#
+# Makefiles
+#
+-include GNUmakefile.preamble
+-include $(GNUSTEP_MAKEFILES)/aggregate.make
+include $(GNUSTEP_MAKEFILES)/framework.make
+-include GNUmakefile.postamble

Added: devmodules/dev-libs/mica/Headers/CoreGraphics/CGBitmapContext.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGBitmapContext.h?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGBitmapContext.h     (added)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGBitmapContext.h     Tue Jun 
23 00:43:23 2015
@@ -0,0 +1,38 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGBitmapContext.h
+
+   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.
+   */
+
+#ifndef CGBITMAPCONTEXT_H
+#define CGBITMAPCONTEXT_H
+
+#include <CoreGraphics/CGContext.h>
+
+
+
+CGContextRef CGBitmapContextCreate ( void *data, size_t width, size_t height, 
size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef space, 
CGBitmapInfo bitmapInfo );
+
+CGImageRef CGBitmapContextCreateImage ( CGContextRef c );
+
+#endif /* CGBITMAPCONTEXT_H_ */

Added: devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h        (added)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGColorSpace.h        Tue Jun 
23 00:43:23 2015
@@ -0,0 +1,50 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGColorSpace.h
+
+   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.
+   */
+
+#ifndef COLORSPACE_H_
+#define COLORSPACE_H_
+
+typedef struct CGColorSpace *CGColorSpaceRef;
+
+CFStringRef kCGColorSpaceGenericGray;
+CFStringRef kCGColorSpaceGenericRGB;
+CFStringRef kCGColorSpaceGenericCMYK;
+
+enum CGColorSpaceModel {
+  kCGColorSpaceModelUnknown = -1,
+  kCGColorSpaceModelMonochrome,
+  kCGColorSpaceModelRGB,
+  kCGColorSpaceModelCMYK,
+  kCGColorSpaceModelLab,
+  kCGColorSpaceModelDeviceN,
+  kCGColorSpaceModelIndexed,
+  kCGColorSpaceModelPattern
+};
+typedef int32_t CGColorSpaceModel;
+
+CGColorSpaceRef CGColorSpaceCreateWithName ( CFStringRef name );
+
+#endif /* COLORSPACE_H_ */

Added: devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h   (added)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGContext.h   Tue Jun 23 
00:43:23 2015
@@ -0,0 +1,35 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGContext.h
+
+   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.
+   */
+
+#ifndef CGCONTEXT_H_
+#define CGCONTEXT_H_
+
+typedef struct CGContext *CGContextRef;
+
+#include <CoreGraphics/CGColorSpace.h>
+#include <CoreGraphics/CGImage.h>
+
+#endif /* CGCONTEXT_H_ */

Added: devmodules/dev-libs/mica/Headers/CoreGraphics/CGImage.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGImage.h?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGImage.h     (added)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGImage.h     Tue Jun 23 
00:43:23 2015
@@ -0,0 +1,57 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGImage.h
+
+   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.
+   */
+
+#ifndef CGIMAGE_H_
+#define CGIMAGE_H_
+
+typedef struct CGImage *CGImageRef;
+
+enum CGImageAlphaInfo {
+  kCGImageAlphaNone,
+  kCGImageAlphaPremultipliedLast,
+  kCGImageAlphaPremultipliedFirst,
+  kCGImageAlphaLast,
+  kCGImageAlphaFirst,
+  kCGImageAlphaNoneSkipLast,
+  kCGImageAlphaNoneSkipFirst,
+  kCGImageAlphaOnly
+};
+typedef enum CGImageAlphaInfo CGImageAlphaInfo;
+
+enum {
+  kCGBitmapAlphaInfoMask = 0x1F,
+  kCGBitmapFloatComponents = (1 << 8),
+
+  kCGBitmapByteOrderMask = 0x7000,
+  kCGBitmapByteOrderDefault = (0 << 12),
+  kCGBitmapByteOrder16Little = (1 << 12),
+  kCGBitmapByteOrder32Little = (2 << 12),
+  kCGBitmapByteOrder16Big = (3 << 12),
+  kCGBitmapByteOrder32Big = (4 << 12)
+};
+typedef uint32_t CGBitmapInfo;
+
+#endif /* CGIMAGE_H_ */

Added: devmodules/dev-libs/mica/Headers/CoreGraphics/CoreGraphics.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CoreGraphics.h?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CoreGraphics.h        (added)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CoreGraphics.h        Tue Jun 
23 00:43:23 2015
@@ -0,0 +1,35 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CoreGraphics.h
+
+   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.
+   */
+
+#ifndef COREGRAPHICS_H_
+#define COREGRAPHICS_H_
+
+#include <CoreGraphics/CGContext.h>
+#include <CoreGraphics/CGColorSpace.h>
+#include <CoreGraphics/CGBitmapContext.h>
+#include <CoreGraphics/CGImage.h>
+
+#endif /* COREGRAPHICS_H_ */

Added: devmodules/dev-libs/mica/Sources/CGColorSpace.m
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Sources/CGColorSpace.m?rev=38673&view=auto
==============================================================================
--- devmodules/dev-libs/mica/Sources/CGColorSpace.m     (added)
+++ devmodules/dev-libs/mica/Sources/CGColorSpace.m     Tue Jun 23 00:43:23 2015
@@ -0,0 +1,33 @@
+/** 
+   Mica: Implementation of CoreGraphics on top of AppKit
+   CGColorSpace.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.
+   */
+
+#include <CoreGraphics/CGColorSpace.h>
+
+CGColorSpaceRef CGColorSpaceCreateWithName ( CFStringRef name )
+{
+  // FIXME this is a stub
+  return NULL;
+}


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

Reply via email to