comparison dynamin/gui/radio_button.d @ 55:c138461bf845

Add focusing and other changes that are related like descendantAdded/Removed events, Window.activated event, and updating List. Window.state was also added, even though focusing does not depend on it.
author Jordan Miner <jminer7@gmail.com>
date Sat, 08 Aug 2009 15:42:27 -0500
parents 6e33b00595e9
children 7c5c50a06ffe
comparison
equal deleted inserted replaced
54:3738a2d0bac3 55:c138461bf845
96 focus(); 96 focus();
97 97
98 } 98 }
99 public: 99 public:
100 this() { 100 this() {
101 _focusable = false;
101 } 102 }
102 this(string text) { 103 this(string text) {
103 this(); 104 this();
104 this.text = text; 105 this.text = text;
105 } 106 }
106 override Size bestSize() { 107 override Size bestSize() {
107 return Size(70, 15); 108 return Size(70, 15);
108 } 109 }
110 alias CheckBox.checked checked;
111 override void checked(bool b) {
112 focusable = b;
113 super.checked(b);
114 }
109 /** 115 /**
110 * Gets or sets what group this radio button is a part of. The default is 1. 116 * Gets or sets what group this radio button is a part of. The default is 1.
111 */ 117 */
112 int group() { return _group; } 118 int group() { return _group; }
113 /// ditto 119 /// ditto