comparison dstep/appkit/NSGraphicsContext.d @ 25:b9de51448c6b

Added an id constructor. Changed the string mixin to a template mixin. Added support for building as a dynamic library
author Jacob Carlborg <doob@me.com>
date Tue, 06 Apr 2010 11:37:27 +0200
parents 19885b43130e
children
comparison
equal deleted inserted replaced
24:ab33fc0c3fc1 25:b9de51448c6b
157 157
158 `; 158 `;
159 159
160 class NSGraphicsContext : NSObject 160 class NSGraphicsContext : NSObject
161 { 161 {
162 mixin (ObjcWrap); 162 mixin ObjcWrap;
163
164 this (id object)
165 {
166 super(object);
167 }
163 168
164 static NSGraphicsContext graphicsContextWithAttributes (NSDictionary attributes) 169 static NSGraphicsContext graphicsContextWithAttributes (NSDictionary attributes)
165 { 170 {
166 return invokeObjcSelfClass!(NSGraphicsContext, "graphicsContextWithAttributes:", NSDictionary)(attributes); 171 return invokeObjcSelfClass!(NSGraphicsContext, "graphicsContextWithAttributes:", NSDictionary)(attributes);
167 } 172 }