comparison dstep/appkit/NSTextStorageScripting.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
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.NSTextStorageScripting;
8
9 import dstep.appkit.NSTextStorage;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc;
12
13 const TScripting = `
14
15 NSArray attributeRuns ()
16 {
17 return invokeObjcSelf!(NSArray, "attributeRuns");
18 }
19
20 void setAttributeRuns (NSArray attributeRuns)
21 {
22 return invokeObjcSelf!(void, "setAttributeRuns:", NSArray)(attributeRuns);
23 }
24
25 NSArray paragraphs ()
26 {
27 return invokeObjcSelf!(NSArray, "paragraphs");
28 }
29
30 void setParagraphs (NSArray paragraphs)
31 {
32 return invokeObjcSelf!(void, "setParagraphs:", NSArray)(paragraphs);
33 }
34
35 NSArray words ()
36 {
37 return invokeObjcSelf!(NSArray, "words");
38 }
39
40 void setWords (NSArray words)
41 {
42 return invokeObjcSelf!(void, "setWords:", NSArray)(words);
43 }
44
45 NSArray characters ()
46 {
47 return invokeObjcSelf!(NSArray, "characters");
48 }
49
50 void setCharacters (NSArray characters)
51 {
52 return invokeObjcSelf!(void, "setCharacters:", NSArray)(characters);
53 }
54
55 NSFont font ()
56 {
57 return invokeObjcSelf!(NSFont, "font");
58 }
59
60 void setFont (NSFont font)
61 {
62 return invokeObjcSelf!(void, "setFont:", NSFont)(font);
63 }
64
65 NSColor foregroundColor ()
66 {
67 return invokeObjcSelf!(NSColor, "foregroundColor");
68 }
69
70 void setForegroundColor (NSColor color)
71 {
72 return invokeObjcSelf!(void, "setForegroundColor:", NSColor)(color);
73 }
74
75 //mixin ObjcBindMethod!(attributeRuns, "attributeRuns");
76 //mixin ObjcBindMethod!(setAttributeRuns, "setAttributeRuns:");
77 //mixin ObjcBindMethod!(paragraphs, "paragraphs");
78 //mixin ObjcBindMethod!(setParagraphs, "setParagraphs:");
79 //mixin ObjcBindMethod!(words, "words");
80 //mixin ObjcBindMethod!(setWords, "setWords:");
81 //mixin ObjcBindMethod!(characters, "characters");
82 //mixin ObjcBindMethod!(setCharacters, "setCharacters:");
83 //mixin ObjcBindMethod!(font, "font");
84 //mixin ObjcBindMethod!(setFont, "setFont:");
85 //mixin ObjcBindMethod!(foregroundColor, "foregroundColor");
86 //mixin ObjcBindMethod!(setForegroundColor, "setForegroundColor:");
87
88 `;
89