| 19 | // ---------------------------------------------------------------------------------------- |
| 20 | |
| 21 | void button:: |
| 22 | set_size ( |
| 23 | unsigned long width, |
| 24 | unsigned long height |
| 25 | ) |
| 26 | { |
| 27 | auto_mutex M(m); |
| 28 | rectangle min_rect = style->get_min_size(name_,*mfont); |
| 29 | // only change the size if it isn't going to be too small to fit the name |
| 30 | if (height >= min_rect.height() && |
| 31 | width >= min_rect.width()) |
| 32 | { |
| 33 | rectangle old(rect); |
| 34 | rect = resize_rect(rect,width,height); |
| 35 | parent.invalidate_rectangle(style->get_invalidation_rect(rect+old)); |
| 36 | btn_tooltip.set_size(width,height); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // ---------------------------------------------------------------------------------------- |
| 41 |
nothing calls this directly
no test coverage detected