| 739 | // ---------------------------------------------------------------------------------------- |
| 740 | |
| 741 | void text_field:: |
| 742 | set_width ( |
| 743 | unsigned long width |
| 744 | ) |
| 745 | { |
| 746 | auto_mutex M(m); |
| 747 | if (width < style->get_padding(*mfont)*2) |
| 748 | return; |
| 749 | |
| 750 | rectangle old(rect); |
| 751 | |
| 752 | rect.set_right(rect.left() + width - 1); |
| 753 | |
| 754 | right_click_menu.set_rect(get_text_rect()); |
| 755 | parent.invalidate_rectangle(rect+old); |
| 756 | } |
| 757 | |
| 758 | // ---------------------------------------------------------------------------------------- |
| 759 |
nothing calls this directly
no test coverage detected