Mercurial > projects > dwt-mac
comparison dwt/widgets/Decorations.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | db5a898b2119 |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
36:db5a898b2119 | 37:642f460a0908 |
---|---|
104 * @see Shell | 104 * @see Shell |
105 * @see DWT | 105 * @see DWT |
106 */ | 106 */ |
107 public class Decorations : Canvas { | 107 public class Decorations : Canvas { |
108 Image image; | 108 Image image; |
109 Image [] images = new Image [0]; | 109 Image [] images; |
110 Menu menuBar; | 110 Menu menuBar; |
111 String text = ""; | 111 String text = ""; |
112 bool minimized, maximized; | 112 bool minimized, maximized; |
113 Control savedFocus; | 113 Control savedFocus; |
114 Button defaultButton; | 114 Button defaultButton; |
155 * @see Widget#checkSubclass | 155 * @see Widget#checkSubclass |
156 * @see Widget#getStyle | 156 * @see Widget#getStyle |
157 */ | 157 */ |
158 public this (Composite parent, int style) { | 158 public this (Composite parent, int style) { |
159 super (parent, checkStyle (style)); | 159 super (parent, checkStyle (style)); |
160 images = new Image [0]; | |
160 } | 161 } |
161 | 162 |
162 static int checkStyle (int style) { | 163 static int checkStyle (int style) { |
163 if ((style & DWT.NO_TRIM) !is 0) { | 164 if ((style & DWT.NO_TRIM) !is 0) { |
164 style &= ~(DWT.CLOSE | DWT.TITLE | DWT.MIN | DWT.MAX | DWT.RESIZE | DWT.BORDER); | 165 style &= ~(DWT.CLOSE | DWT.TITLE | DWT.MIN | DWT.MAX | DWT.RESIZE | DWT.BORDER); |