1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
package org.eclipse.swt.internal.cocoa;
public class NSTextStorage extends NSMutableAttributedString {
public NSTextStorage() {
super();
}
public NSTextStorage(int id) {
super(id);
}
public void addLayoutManager(NSLayoutManager obj) {
OS.objc_msgSend(this.id, OS.sel_addLayoutManager_1, obj != null ? obj.id : 0);
}
public NSArray attributeRuns() {
int result = OS.objc_msgSend(this.id, OS.sel_attributeRuns);
return result != 0 ? new NSArray(result) : null;
}
public int changeInLength() {
return OS.objc_msgSend(this.id, OS.sel_changeInLength);
}
public NSArray characters() {
int result = OS.objc_msgSend(this.id, OS.sel_characters);
return result != 0 ? new NSArray(result) : null;
}
public id delegate() {
int result = OS.objc_msgSend(this.id, OS.sel_delegate);
return result != 0 ? new id(result) : null;
}
public void edited(int editedMask, NSRange range, int delta) {
OS.objc_msgSend(this.id, OS.sel_edited_1range_1changeInLength_1, editedMask, range, delta);
}
public int editedMask() {
return OS.objc_msgSend(this.id, OS.sel_editedMask);
}
public NSRange editedRange() {
NSRange result = new NSRange();
OS.objc_msgSend_stret(result, this.id, OS.sel_editedRange);
return result;
}
public void ensureAttributesAreFixedInRange(NSRange range) {
OS.objc_msgSend(this.id, OS.sel_ensureAttributesAreFixedInRange_1, range);
}
public boolean fixesAttributesLazily() {
return OS.objc_msgSend(this.id, OS.sel_fixesAttributesLazily) != 0;
}
public NSFont font() {
int result = OS.objc_msgSend(this.id, OS.sel_font);
return result != 0 ? new NSFont(result) : null;
}
public NSColor foregroundColor() {
int result = OS.objc_msgSend(this.id, OS.sel_foregroundColor);
return result != 0 ? new NSColor(result) : null;
}
public void invalidateAttributesInRange(NSRange range) {
OS.objc_msgSend(this.id, OS.sel_invalidateAttributesInRange_1, range);
}
public NSArray layoutManagers() {
int result = OS.objc_msgSend(this.id, OS.sel_layoutManagers);
return result != 0 ? new NSArray(result) : null;
}
public NSArray paragraphs() {
int result = OS.objc_msgSend(this.id, OS.sel_paragraphs);
return result != 0 ? new NSArray(result) : null;
}
public void processEditing() {
OS.objc_msgSend(this.id, OS.sel_processEditing);
}
public void removeLayoutManager(NSLayoutManager obj) {
OS.objc_msgSend(this.id, OS.sel_removeLayoutManager_1, obj != null ? obj.id : 0);
}
public void setAttributeRuns(NSArray attributeRuns) {
OS.objc_msgSend(this.id, OS.sel_setAttributeRuns_1, attributeRuns != null ? attributeRuns.id : 0);
}
public void setCharacters(NSArray characters) {
OS.objc_msgSend(this.id, OS.sel_setCharacters_1, characters != null ? characters.id : 0);
}
public void setDelegate(id delegate) {
OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegate != null ? delegate.id : 0);
}
public void setFont(NSFont font) {
OS.objc_msgSend(this.id, OS.sel_setFont_1, font != null ? font.id : 0);
}
public void setForegroundColor(NSColor color) {
OS.objc_msgSend(this.id, OS.sel_setForegroundColor_1, color != null ? color.id : 0);
}
public void setParagraphs(NSArray paragraphs) {
OS.objc_msgSend(this.id, OS.sel_setParagraphs_1, paragraphs != null ? paragraphs.id : 0);
}
public void setWords(NSArray words) {
OS.objc_msgSend(this.id, OS.sel_setWords_1, words != null ? words.id : 0);
}
public NSArray words() {
int result = OS.objc_msgSend(this.id, OS.sel_words);
return result != 0 ? new NSArray(result) : null;
}
}
|