Mercurial > projects > dstep
comparison dstep/appkit/NSImageView.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.appkit.NSImageView; | |
8 | |
9 import dstep.appkit.NSControl; | |
10 import dstep.appkit.NSImage; | |
11 import dstep.appkit.NSImageCell; | |
12 import dstep.objc.bridge.Bridge; | |
13 import dstep.objc.objc; | |
14 | |
15 class NSImageView : NSControl | |
16 { | |
17 mixin (ObjcWrap); | |
18 | |
19 NSImage image () | |
20 { | |
21 return invokeObjcSelf!(NSImage, "image"); | |
22 } | |
23 | |
24 void setImage (NSImage newImage) | |
25 { | |
26 return invokeObjcSelf!(void, "setImage:", NSImage)(newImage); | |
27 } | |
28 | |
29 uint imageAlignment () | |
30 { | |
31 return invokeObjcSelf!(uint, "imageAlignment"); | |
32 } | |
33 | |
34 void setImageAlignment (uint newAlign) | |
35 { | |
36 return invokeObjcSelf!(void, "setImageAlignment:", uint)(newAlign); | |
37 } | |
38 | |
39 uint imageScaling () | |
40 { | |
41 return invokeObjcSelf!(uint, "imageScaling"); | |
42 } | |
43 | |
44 void setImageScaling (uint newScaling) | |
45 { | |
46 return invokeObjcSelf!(void, "setImageScaling:", uint)(newScaling); | |
47 } | |
48 | |
49 uint imageFrameStyle () | |
50 { | |
51 return invokeObjcSelf!(uint, "imageFrameStyle"); | |
52 } | |
53 | |
54 void setImageFrameStyle (uint newStyle) | |
55 { | |
56 return invokeObjcSelf!(void, "setImageFrameStyle:", uint)(newStyle); | |
57 } | |
58 | |
59 void setEditable (bool yn) | |
60 { | |
61 return invokeObjcSelf!(void, "setEditable:", bool)(yn); | |
62 } | |
63 | |
64 bool isEditable () | |
65 { | |
66 return invokeObjcSelf!(bool, "isEditable"); | |
67 } | |
68 | |
69 void setAnimates (bool flag) | |
70 { | |
71 return invokeObjcSelf!(void, "setAnimates:", bool)(flag); | |
72 } | |
73 | |
74 bool animates () | |
75 { | |
76 return invokeObjcSelf!(bool, "animates"); | |
77 } | |
78 | |
79 bool allowsCutCopyPaste () | |
80 { | |
81 return invokeObjcSelf!(bool, "allowsCutCopyPaste"); | |
82 } | |
83 | |
84 void setAllowsCutCopyPaste (bool allow) | |
85 { | |
86 return invokeObjcSelf!(void, "setAllowsCutCopyPaste:", bool)(allow); | |
87 } | |
88 } | |
89 |