comparison dwt/internal/cocoa/NSTextTable.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
98 } 98 }
99 99
100 public NSRect boundsRectForBlock (NSTextTableBlock block, NSRect contentRect, NSRect rect, NSTextContainer textContainer, NSRange charRange) 100 public NSRect boundsRectForBlock (NSTextTableBlock block, NSRect contentRect, NSRect rect, NSTextContainer textContainer, NSRange charRange)
101 { 101 {
102 NSRect result; 102 NSRect result;
103 OS.objc_msgSend_stret(result, this.id, OS.sel_boundsRectForBlock_1contentRect_1inRect_1textContainer_1characterRange_1, 103 OS.objc_msgSend_stret(&result, this.id_, OS.sel_boundsRectForBlock_1contentRect_1inRect_1textContainer_1characterRange_1,
104 block !is null ? block.id : null, contentRect, rect, textContainer !is null ? textContainer.id : null, charRange); 104 block !is null ? block.id_ : null, contentRect, rect, textContainer !is null ? textContainer.id_ : null, charRange);
105 return result; 105 return result;
106 } 106 }
107 107
108 public bool collapsesBorders () 108 public bool collapsesBorders ()
109 { 109 {
110 return OS.objc_msgSend(this.id, OS.sel_collapsesBorders) !is null; 110 return OS.objc_msgSend(this.id_, OS.sel_collapsesBorders) !is null;
111 } 111 }
112 112
113 public void drawBackgroundForBlock (NSTextTableBlock block, NSRect frameRect, NSView controlView, NSRange charRange, 113 public void drawBackgroundForBlock (NSTextTableBlock block, NSRect frameRect, NSView controlView, NSRange charRange,
114 NSLayoutManager layoutManager) 114 NSLayoutManager layoutManager)
115 { 115 {
116 OS.objc_msgSend(this.id, OS.sel_drawBackgroundForBlock_1withFrame_1inView_1characterRange_1layoutManager_1, block !is null ? block.id : null, 116 OS.objc_msgSend(this.id_, OS.sel_drawBackgroundForBlock_1withFrame_1inView_1characterRange_1layoutManager_1, block !is null ? block.id_ : null,
117 frameRect, controlView !is null ? controlView.id : null, charRange, layoutManager !is null ? layoutManager.id : null); 117 frameRect, controlView !is null ? controlView.id_ : null, charRange, layoutManager !is null ? layoutManager.id_ : null);
118 } 118 }
119 119
120 public bool hidesEmptyCells () 120 public bool hidesEmptyCells ()
121 { 121 {
122 return OS.objc_msgSend(this.id, OS.sel_hidesEmptyCells) !is null; 122 return OS.objc_msgSend(this.id_, OS.sel_hidesEmptyCells) !is null;
123 } 123 }
124 124
125 public NSTextTableLayoutAlgorithm layoutAlgorithm () 125 public NSTextTableLayoutAlgorithm layoutAlgorithm ()
126 { 126 {
127 return cast(NSTextTableLayoutAlgorithm) OS.objc_msgSend(this.id, OS.sel_layoutAlgorithm); 127 return cast(NSTextTableLayoutAlgorithm) OS.objc_msgSend(this.id_, OS.sel_layoutAlgorithm);
128 } 128 }
129 129
130 public NSUInteger numberOfColumns () 130 public NSUInteger numberOfColumns ()
131 { 131 {
132 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_numberOfColumns); 132 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfColumns);
133 } 133 }
134 134
135 public NSRect rectForBlock (NSTextTableBlock block, NSPoint startingPoint, NSRect rect, NSTextContainer textContainer, NSRange charRange) 135 public NSRect rectForBlock (NSTextTableBlock block, NSPoint startingPoint, NSRect rect, NSTextContainer textContainer, NSRange charRange)
136 { 136 {
137 NSRect result; 137 NSRect result;
138 OS.objc_msgSend_stret(result, this.id, OS.sel_rectForBlock_1layoutAtPoint_1inRect_1textContainer_1characterRange_1, 138 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rectForBlock_1layoutAtPoint_1inRect_1textContainer_1characterRange_1,
139 block !is null ? block.id : null, startingPoint, rect, textContainer !is null ? textContainer.id : null, charRange); 139 block !is null ? block.id_ : null, startingPoint, rect, textContainer !is null ? textContainer.id_ : null, charRange);
140 return result; 140 return result;
141 } 141 }
142 142
143 public void setCollapsesBorders (bool flag) 143 public void setCollapsesBorders (bool flag)
144 { 144 {
145 OS.objc_msgSend(this.id, OS.sel_setCollapsesBorders_1, flag); 145 OS.objc_msgSend(this.id_, OS.sel_setCollapsesBorders_1, flag);
146 } 146 }
147 147
148 public void setHidesEmptyCells (bool flag) 148 public void setHidesEmptyCells (bool flag)
149 { 149 {
150 OS.objc_msgSend(this.id, OS.sel_setHidesEmptyCells_1, flag); 150 OS.objc_msgSend(this.id_, OS.sel_setHidesEmptyCells_1, flag);
151 } 151 }
152 152
153 public void setLayoutAlgorithm (NSTextTableLayoutAlgorithm algorithm) 153 public void setLayoutAlgorithm (NSTextTableLayoutAlgorithm algorithm)
154 { 154 {
155 OS.objc_msgSend(this.id, OS.sel_setLayoutAlgorithm_1, algorithm); 155 OS.objc_msgSend(this.id_, OS.sel_setLayoutAlgorithm_1, algorithm);
156 } 156 }
157 157
158 public void setNumberOfColumns (NSUInteger numCols) 158 public void setNumberOfColumns (NSUInteger numCols)
159 { 159 {
160 OS.objc_msgSend(this.id, OS.sel_setNumberOfColumns_1, numCols); 160 OS.objc_msgSend(this.id_, OS.sel_setNumberOfColumns_1, numCols);
161 } 161 }
162 162
163 } 163 }