Mercurial > projects > dynamin
comparison dynamin/gui/control.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | 5c8c1c2e12c0 |
children |
comparison
equal
deleted
inserted
replaced
105:97997a544ac0 | 106:acdbb30fee7e |
---|---|
555 void elasticY(bool b) { _elasticY = b; } | 555 void elasticY(bool b) { _elasticY = b; } |
556 | 556 |
557 /** | 557 /** |
558 * Gets or sets the text that this control shows. | 558 * Gets or sets the text that this control shows. |
559 */ | 559 */ |
560 string text() { return _text.dup; } | 560 string text() { return _text; } |
561 /// ditto | 561 /// ditto |
562 void text(string str) { | 562 void text(string str) { |
563 if(_text == str) | 563 if(_text == str) |
564 return; | 564 return; |
565 _text = str.dup; | 565 _text = str; |
566 repaint(); | 566 repaint(); |
567 //TextChanged(EventArgs e) // TODO: add event | 567 //TextChanged(EventArgs e) // TODO: add event |
568 } | 568 } |
569 | 569 |
570 /** | 570 /** |