Mercurial > projects > dwt-mac
comparison dwt/internal/objc/appkit/NSAttributedString.d @ 15:2952d5604c0a
Ported some widgets, added some stuff to the runtime bindings
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 29 Aug 2008 21:46:05 +0200 |
parents | 380af2bdd8e5 |
children | 5b53d338c709 |
comparison
equal
deleted
inserted
replaced
14:762fbe6f17d3 | 15:2952d5604c0a |
---|---|
5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) | 5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) |
6 * | 6 * |
7 */ | 7 */ |
8 module dwt.internal.objc.appkit.NSAttributedString; | 8 module dwt.internal.objc.appkit.NSAttributedString; |
9 | 9 |
10 import dwt.internal.cocoa.NSString; | |
10 import bindings = dwt.internal.objc.appkit.bindings; | 11 import bindings = dwt.internal.objc.appkit.bindings; |
11 | 12 |
12 template NSAttributedString () | 13 NSString NSBackgroundColorAttributeName () |
13 { | 14 { |
14 extern (C): | 15 return new NSString(bindings.DCB_NSBackgroundColorAttributeName()); |
15 | |
16 id* NSBackgroundColorAttributeName; | |
17 id* NSBaselineOffsetAttributeName; | |
18 id* NSFontAttributeName; | |
19 id* NSForegroundColorAttributeName; | |
20 id* NSLinkAttributeName; | |
21 id* NSParagraphStyleAttributeName; | |
22 id* NSStrikethroughColorAttributeName; | |
23 id* NSStrikethroughStyleAttributeName; | |
24 id* NSUnderlineColorAttributeName; | |
25 id* NSUnderlineStyleAttributeName; | |
26 } | 16 } |
17 | |
18 NSString NSBaselineOffsetAttributeName () | |
19 { | |
20 return new NSString(bindings.DCB_NSBaselineOffsetAttributeName()); | |
21 } | |
22 | |
23 NSString NSFontAttributeName () | |
24 { | |
25 return new NSString(bindings.DCB_NSFontAttributeName()); | |
26 } | |
27 | |
28 NSString NSForegroundColorAttributeName () | |
29 { | |
30 return new NSString(bindings.DCB_NSForegroundColorAttributeName()); | |
31 } | |
32 | |
33 NSString NSLinkAttributeName () | |
34 { | |
35 return new NSString(bindings.DCB_NSLinkAttributeName()); | |
36 } | |
37 | |
38 NSString NSParagraphStyleAttributeName () | |
39 { | |
40 return new NSString(bindings.DCB_NSParagraphStyleAttributeName()); | |
41 } | |
42 | |
43 NSString NSStrikethroughColorAttributeName () | |
44 { | |
45 return new NSString(bindings.DCB_NSStrikethroughColorAttributeName()); | |
46 } | |
47 | |
48 NSString NSStrikethroughStyleAttributeName () | |
49 { | |
50 return new NSString(bindings.DCB_NSStrikethroughStyleAttributeName()); | |
51 } | |
52 | |
53 NSString NSUnderlineColorAttributeName () | |
54 { | |
55 return new NSString(bindings.DCB_NSUnderlineColorAttributeName()); | |
56 } | |
57 | |
58 NSString NSUnderlineStyleAttributeName () | |
59 { | |
60 return new NSString(bindings.DCB_NSUnderlineStyleAttributeName()); | |
61 } |