Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/CIImage.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
18 import dwt.internal.cocoa.NSBitmapImageRep; | 18 import dwt.internal.cocoa.NSBitmapImageRep; |
19 import dwt.internal.cocoa.NSImage : NSCompositingOperation; | 19 import dwt.internal.cocoa.NSImage : NSCompositingOperation; |
20 import dwt.internal.cocoa.NSObject; | 20 import dwt.internal.cocoa.NSObject; |
21 import dwt.internal.cocoa.NSPoint; | 21 import dwt.internal.cocoa.NSPoint; |
22 import dwt.internal.cocoa.NSRect; | 22 import dwt.internal.cocoa.NSRect; |
23 import dwt.internal.cocoa.OS; | |
23 import objc = dwt.internal.objc.runtime; | 24 import objc = dwt.internal.objc.runtime; |
24 | 25 |
25 public class CIImage : NSObject | 26 public class CIImage : NSObject |
26 { | 27 { |
27 | 28 |
35 super(id); | 36 super(id); |
36 } | 37 } |
37 | 38 |
38 public void drawAtPoint (NSPoint point, NSRect fromRect, NSCompositingOperation op, CGFloat delta) | 39 public void drawAtPoint (NSPoint point, NSRect fromRect, NSCompositingOperation op, CGFloat delta) |
39 { | 40 { |
40 OS.objc_msgSend(this.id, OS.sel_drawAtPoint_1fromRect_1operation_1fraction_1, point, fromRect, op, delta); | 41 OS.objc_msgSend(this.id_, OS.sel_drawAtPoint_1fromRect_1operation_1fraction_1, point, fromRect, op, delta); |
41 } | 42 } |
42 | 43 |
43 public void drawInRect (NSRect rect, NSRect fromRect, NSCompositingOperation op, CGFloat delta) | 44 public void drawInRect (NSRect rect, NSRect fromRect, NSCompositingOperation op, CGFloat delta) |
44 { | 45 { |
45 OS.objc_msgSend(this.id, OS.sel_drawInRect_1fromRect_1operation_1fraction_1, rect, fromRect, op, delta); | 46 OS.objc_msgSend(this.id_, OS.sel_drawInRect_1fromRect_1operation_1fraction_1, rect, fromRect, op, delta); |
46 } | 47 } |
47 | 48 |
48 public CIImage initWithBitmapImageRep (NSBitmapImageRep bitmapImageRep) | 49 public CIImage initWithBitmapImageRep (NSBitmapImageRep bitmapImageRep) |
49 { | 50 { |
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapImageRep_1, bitmapImageRep !is null ? bitmapImageRep.id : null); | 51 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithBitmapImageRep_1, bitmapImageRep !is null ? bitmapImageRep.id_ : null); |
51 return result !is null ? this : null; | 52 return result !is null ? this : null; |
52 } | 53 } |
53 | 54 |
54 } | 55 } |