Mercurial > projects > dwt-mac
comparison dwt/widgets/ExpandItem.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | a47b2ee8cbde |
children |
comparison
equal
deleted
inserted
replaced
122:2e671fa40eec | 123:63a09873578e |
---|---|
53 int x, y, width, height; | 53 int x, y, width, height; |
54 int imageHeight, imageWidth; | 54 int imageHeight, imageWidth; |
55 static const int TEXT_INSET = 6; | 55 static const int TEXT_INSET = 6; |
56 static const int BORDER = 1; | 56 static const int BORDER = 1; |
57 static const int CHEVRON_SIZE = 24; | 57 static const int CHEVRON_SIZE = 24; |
58 | 58 |
59 /** | 59 /** |
60 * Constructs a new instance of this class given its parent | 60 * Constructs a new instance of this class given its parent |
61 * and a style value describing its behavior and appearance. | 61 * and a style value describing its behavior and appearance. |
62 * <p> | 62 * <p> |
63 * The style value is either one of the style constants defined in | 63 * The style value is either one of the style constants defined in |
141 int [] polyline1, polyline2; | 141 int [] polyline1, polyline2; |
142 if (expanded) { | 142 if (expanded) { |
143 int px = x + 4 + 5; | 143 int px = x + 4 + 5; |
144 int py = y + 4 + 7; | 144 int py = y + 4 + 7; |
145 polyline1 = [ | 145 polyline1 = [ |
146 px,py, px+1,py, px+1,py-1, px+2,py-1, px+2,py-2, px+3,py-2, px+3,py-3, | 146 px,py, px+1,py, px+1,py-1, px+2,py-1, px+2,py-2, px+3,py-2, px+3,py-3, |
147 px+3,py-2, px+4,py-2, px+4,py-1, px+5,py-1, px+5,py, px+6,py]; | 147 px+3,py-2, px+4,py-2, px+4,py-1, px+5,py-1, px+5,py, px+6,py]; |
148 py += 4; | 148 py += 4; |
149 polyline2 = [ | 149 polyline2 = [ |
150 px,py, px+1,py, px+1,py-1, px+2,py-1, px+2,py-2, px+3,py-2, px+3,py-3, | 150 px,py, px+1,py, px+1,py-1, px+2,py-1, px+2,py-2, px+3,py-2, px+3,py-3, |
151 px+3,py-2, px+4,py-2, px+4,py-1, px+5,py-1, px+5,py, px+6,py]; | 151 px+3,py-2, px+4,py-2, px+4,py-1, px+5,py-1, px+5,py, px+6,py]; |
152 } else { | 152 } else { |
153 int px = x + 4 + 5; | 153 int px = x + 4 + 5; |
154 int py = y + 4 + 4; | 154 int py = y + 4 + 4; |
155 polyline1 = [ | 155 polyline1 = [ |
156 px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3, | 156 px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3, |
157 px+3,py+2, px+4,py+2, px+4,py+1, px+5,py+1, px+5,py, px+6,py]; | 157 px+3,py+2, px+4,py+2, px+4,py+1, px+5,py+1, px+5,py, px+6,py]; |
158 py += 4; | 158 py += 4; |
159 polyline2 = [ | 159 polyline2 = [ |
160 px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3, | 160 px,py, px+1,py, px+1,py+1, px+2,py+1, px+2,py+2, px+3,py+2, px+3,py+3, |
161 px+3,py+2, px+4,py+2, px+4,py+1, px+5,py+1, px+5,py, px+6,py]; | 161 px+3,py+2, px+4,py+2, px+4,py+1, px+5,py+1, px+5,py, px+6,py]; |
162 } | 162 } |
163 gc.setForeground (display.getSystemColor (DWT.COLOR_TITLE_FOREGROUND)); | 163 gc.setForeground (display.getSystemColor (DWT.COLOR_TITLE_FOREGROUND)); |
164 gc.drawPolyline (polyline1); | 164 gc.drawPolyline (polyline1); |
165 gc.drawPolyline (polyline2); | 165 gc.drawPolyline (polyline2); |
166 } | 166 } |