Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSTextStorage.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 |
---|---|
37 super(id); | 37 super(id); |
38 } | 38 } |
39 | 39 |
40 public void addLayoutManager (NSLayoutManager obj) | 40 public void addLayoutManager (NSLayoutManager obj) |
41 { | 41 { |
42 OS.objc_msgSend(this.id, OS.sel_addLayoutManager_1, obj !is null ? obj.id : null); | 42 OS.objc_msgSend(this.id_, OS.sel_addLayoutManager_1, obj !is null ? obj.id_ : null); |
43 } | 43 } |
44 | 44 |
45 public NSArray attributeRuns () | 45 public NSArray attributeRuns () |
46 { | 46 { |
47 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributeRuns); | 47 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributeRuns); |
48 return result !is null ? new NSArray(result) : null; | 48 return result !is null ? new NSArray(result) : null; |
49 } | 49 } |
50 | 50 |
51 public NSInteger changeInLength () | 51 public NSInteger changeInLength () |
52 { | 52 { |
53 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_changeInLength); | 53 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_changeInLength); |
54 } | 54 } |
55 | 55 |
56 public NSArray characters () | 56 public NSArray characters () |
57 { | 57 { |
58 objc.id result = OS.objc_msgSend(this.id, OS.sel_characters); | 58 objc.id result = OS.objc_msgSend(this.id_, OS.sel_characters); |
59 return result !is null ? new NSArray(result) : null; | 59 return result !is null ? new NSArray(result) : null; |
60 } | 60 } |
61 | 61 |
62 public id delegatee () | 62 public id delegatee () |
63 { | 63 { |
64 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); | 64 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate); |
65 return result !is null ? new id(result) : null; | 65 return result !is null ? new id(result) : null; |
66 } | 66 } |
67 | 67 |
68 public void edited (NSUInteger editedMask, NSRange range, NSInteger delta) | 68 public void edited (NSUInteger editedMask, NSRange range, NSInteger delta) |
69 { | 69 { |
70 OS.objc_msgSend(this.id, OS.sel_edited_1range_1changeInLength_1, editedMask, range, delta); | 70 OS.objc_msgSend(this.id_, OS.sel_edited_1range_1changeInLength_1, editedMask, range, delta); |
71 } | 71 } |
72 | 72 |
73 public NSUInteger editedMask () | 73 public NSUInteger editedMask () |
74 { | 74 { |
75 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_editedMask); | 75 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_editedMask); |
76 } | 76 } |
77 | 77 |
78 public NSRange editedRange () | 78 public NSRange editedRange () |
79 { | 79 { |
80 NSRange result; | 80 NSRange result; |
81 OS.objc_msgSend_stret(result, this.id, OS.sel_editedRange); | 81 OS.objc_msgSend_stret(&result, this.id_, OS.sel_editedRange); |
82 return result; | 82 return result; |
83 } | 83 } |
84 | 84 |
85 public void ensureAttributesAreFixedInRange (NSRange range) | 85 public void ensureAttributesAreFixedInRange (NSRange range) |
86 { | 86 { |
87 OS.objc_msgSend(this.id, OS.sel_ensureAttributesAreFixedInRange_1, range); | 87 OS.objc_msgSend(this.id_, OS.sel_ensureAttributesAreFixedInRange_1, range); |
88 } | 88 } |
89 | 89 |
90 public bool fixesAttributesLazily () | 90 public bool fixesAttributesLazily () |
91 { | 91 { |
92 return OS.objc_msgSend(this.id, OS.sel_fixesAttributesLazily) !is null; | 92 return OS.objc_msgSend(this.id_, OS.sel_fixesAttributesLazily) !is null; |
93 } | 93 } |
94 | 94 |
95 public NSFont font () | 95 public NSFont font () |
96 { | 96 { |
97 objc.id result = OS.objc_msgSend(this.id, OS.sel_font); | 97 objc.id result = OS.objc_msgSend(this.id_, OS.sel_font); |
98 return result !is null ? new NSFont(result) : null; | 98 return result !is null ? new NSFont(result) : null; |
99 } | 99 } |
100 | 100 |
101 public NSColor foregroundColor () | 101 public NSColor foregroundColor () |
102 { | 102 { |
103 objc.id result = OS.objc_msgSend(this.id, OS.sel_foregroundColor); | 103 objc.id result = OS.objc_msgSend(this.id_, OS.sel_foregroundColor); |
104 return result !is null ? new NSColor(result) : null; | 104 return result !is null ? new NSColor(result) : null; |
105 } | 105 } |
106 | 106 |
107 public void invalidateAttributesInRange (NSRange range) | 107 public void invalidateAttributesInRange (NSRange range) |
108 { | 108 { |
109 OS.objc_msgSend(this.id, OS.sel_invalidateAttributesInRange_1, range); | 109 OS.objc_msgSend(this.id_, OS.sel_invalidateAttributesInRange_1, range); |
110 } | 110 } |
111 | 111 |
112 public NSArray layoutManagers () | 112 public NSArray layoutManagers () |
113 { | 113 { |
114 objc.id result = OS.objc_msgSend(this.id, OS.sel_layoutManagers); | 114 objc.id result = OS.objc_msgSend(this.id_, OS.sel_layoutManagers); |
115 return result !is null ? new NSArray(result) : null; | 115 return result !is null ? new NSArray(result) : null; |
116 } | 116 } |
117 | 117 |
118 public NSArray paragraphs () | 118 public NSArray paragraphs () |
119 { | 119 { |
120 objc.id result = OS.objc_msgSend(this.id, OS.sel_paragraphs); | 120 objc.id result = OS.objc_msgSend(this.id_, OS.sel_paragraphs); |
121 return result !is null ? new NSArray(result) : null; | 121 return result !is null ? new NSArray(result) : null; |
122 } | 122 } |
123 | 123 |
124 public void processEditing () | 124 public void processEditing () |
125 { | 125 { |
126 OS.objc_msgSend(this.id, OS.sel_processEditing); | 126 OS.objc_msgSend(this.id_, OS.sel_processEditing); |
127 } | 127 } |
128 | 128 |
129 public void removeLayoutManager (NSLayoutManager obj) | 129 public void removeLayoutManager (NSLayoutManager obj) |
130 { | 130 { |
131 OS.objc_msgSend(this.id, OS.sel_removeLayoutManager_1, obj !is null ? obj.id : null); | 131 OS.objc_msgSend(this.id_, OS.sel_removeLayoutManager_1, obj !is null ? obj.id_ : null); |
132 } | 132 } |
133 | 133 |
134 public void setAttributeRuns (NSArray attributeRuns) | 134 public void setAttributeRuns (NSArray attributeRuns) |
135 { | 135 { |
136 OS.objc_msgSend(this.id, OS.sel_setAttributeRuns_1, attributeRuns !is null ? attributeRuns.id : null); | 136 OS.objc_msgSend(this.id_, OS.sel_setAttributeRuns_1, attributeRuns !is null ? attributeRuns.id_ : null); |
137 } | 137 } |
138 | 138 |
139 public void setCharacters (NSArray characters) | 139 public void setCharacters (NSArray characters) |
140 { | 140 { |
141 OS.objc_msgSend(this.id, OS.sel_setCharacters_1, characters !is null ? characters.id : null); | 141 OS.objc_msgSend(this.id_, OS.sel_setCharacters_1, characters !is null ? characters.id_ : null); |
142 } | 142 } |
143 | 143 |
144 public void setDelegate (id delegatee) | 144 public void setDelegate (id delegatee) |
145 { | 145 { |
146 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); | 146 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null); |
147 } | 147 } |
148 | 148 |
149 public void setFont (NSFont font) | 149 public void setFont (NSFont font) |
150 { | 150 { |
151 OS.objc_msgSend(this.id, OS.sel_setFont_1, font !is null ? font.id : null); | 151 OS.objc_msgSend(this.id_, OS.sel_setFont_1, font !is null ? font.id_ : null); |
152 } | 152 } |
153 | 153 |
154 public void setForegroundColor (NSColor color) | 154 public void setForegroundColor (NSColor color) |
155 { | 155 { |
156 OS.objc_msgSend(this.id, OS.sel_setForegroundColor_1, color !is null ? color.id : null); | 156 OS.objc_msgSend(this.id_, OS.sel_setForegroundColor_1, color !is null ? color.id_ : null); |
157 } | 157 } |
158 | 158 |
159 public void setParagraphs (NSArray paragraphs) | 159 public void setParagraphs (NSArray paragraphs) |
160 { | 160 { |
161 OS.objc_msgSend(this.id, OS.sel_setParagraphs_1, paragraphs !is null ? paragraphs.id : null); | 161 OS.objc_msgSend(this.id_, OS.sel_setParagraphs_1, paragraphs !is null ? paragraphs.id_ : null); |
162 } | 162 } |
163 | 163 |
164 public void setWords (NSArray words) | 164 public void setWords (NSArray words) |
165 { | 165 { |
166 OS.objc_msgSend(this.id, OS.sel_setWords_1, words !is null ? words.id : null); | 166 OS.objc_msgSend(this.id_, OS.sel_setWords_1, words !is null ? words.id_ : null); |
167 } | 167 } |
168 | 168 |
169 public NSArray words () | 169 public NSArray words () |
170 { | 170 { |
171 objc.id result = OS.objc_msgSend(this.id, OS.sel_words); | 171 objc.id result = OS.objc_msgSend(this.id_, OS.sel_words); |
172 return result !is null ? new NSArray(result) : null; | 172 return result !is null ? new NSArray(result) : null; |
173 } | 173 } |
174 | 174 |
175 } | 175 } |