comparison dynamin/gui/button.d @ 78:651082a9b364

Add Event.setUp() and use in place of mainHandler and dispatcher.
author Jordan Miner <jminer7@gmail.com>
date Sat, 06 Feb 2010 15:12:52 -0600
parents 84beb40c1665
children 73060bc3f004
comparison
equal deleted inserted replaced
77:c9a4850926d9 78:651082a9b364
172 /// This event occurs after the button has been clicked. 172 /// This event occurs after the button has been clicked.
173 Event!(whenClicked) clicked; 173 Event!(whenClicked) clicked;
174 174
175 /// 175 ///
176 this() { 176 this() {
177 clicked.mainHandler = &whenClicked; 177 clicked.setUp(&whenClicked);
178 _focusable = true; 178 _focusable = true;
179 } 179 }
180 /// 180 ///
181 this(string text) { 181 this(string text) {
182 this(); 182 this();