Mercurial > projects > dwt-mac
comparison dwt/widgets/CoolItem.d @ 143:c41e13089a3c
Fixes #21
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 05 Jun 2009 01:25:10 +0200 |
parents | 63a09873578e |
children |
comparison
equal
deleted
inserted
replaced
142:6ef64ef8df0a | 143:c41e13089a3c |
---|---|
104 * @see Widget#checkSubclass | 104 * @see Widget#checkSubclass |
105 * @see Widget#getStyle | 105 * @see Widget#getStyle |
106 */ | 106 */ |
107 public this (CoolBar parent, int style) { | 107 public this (CoolBar parent, int style) { |
108 super(parent, style); | 108 super(parent, style); |
109 itemBounds = new Rectangle(0, 0, 0, 0); | |
109 this.parent = parent; | 110 this.parent = parent; |
110 parent.createItem (this, parent.getItemCount()); | 111 parent.createItem (this, parent.getItemCount()); |
111 calculateChevronTrim (); | 112 calculateChevronTrim (); |
112 | |
113 itemBounds = new Rectangle(0, 0, 0, 0); | |
114 } | 113 } |
115 /** | 114 /** |
116 * Constructs a new instance of this class given its parent | 115 * Constructs a new instance of this class given its parent |
117 * (which must be a <code>CoolBar</code>), a style value | 116 * (which must be a <code>CoolBar</code>), a style value |
118 * describing its behavior and appearance, and the index | 117 * describing its behavior and appearance, and the index |
144 * @see Widget#checkSubclass | 143 * @see Widget#checkSubclass |
145 * @see Widget#getStyle | 144 * @see Widget#getStyle |
146 */ | 145 */ |
147 public this (CoolBar parent, int style, int index) { | 146 public this (CoolBar parent, int style, int index) { |
148 super(parent, style); | 147 super(parent, style); |
148 itemBounds = new Rectangle(0, 0, 0, 0); | |
149 this.parent = parent; | 149 this.parent = parent; |
150 parent.createItem (this, index); | 150 parent.createItem (this, index); |
151 calculateChevronTrim (); | 151 calculateChevronTrim (); |
152 | |
153 itemBounds = new Rectangle(0, 0, 0, 0); | |
154 } | 152 } |
155 /** | 153 /** |
156 * Adds the listener to the collection of listeners that will | 154 * Adds the listener to the collection of listeners that will |
157 * be notified when the control is selected by the user, by sending it one | 155 * be notified when the control is selected by the user, by sending it one |
158 * of the messages defined in the <code>SelectionListener</code> | 156 * of the messages defined in the <code>SelectionListener</code> |