| 134 | public: |
| 135 | |
| 136 | toggle_button( |
| 137 | drawable_window& w |
| 138 | ) : |
| 139 | button_action(w), |
| 140 | btn_tooltip(w), |
| 141 | checked(false) |
| 142 | { |
| 143 | style.reset(new toggle_button_style_default()); |
| 144 | enable_events(); |
| 145 | } |
| 146 | |
| 147 | ~toggle_button() { disable_events(); parent.invalidate_rectangle(rect); } |
| 148 |