| 51 | } |
| 52 | |
| 53 | template <typename T> void TextBox<T>::update() { |
| 54 | if(!is_selected()) |
| 55 | reset_textbox_text(); |
| 56 | std::string newTextboxStr = textbox->get_string(); |
| 57 | if(oldDD.isSelected != is_selected() || oldDD.textboxStr != newTextboxStr || oldDD.cur != *cur) { |
| 58 | oldDD.isSelected = is_selected(); |
| 59 | oldDD.textboxStr = newTextboxStr; |
| 60 | oldDD.cur = *cur; |
| 61 | gui.invalidate_draw_element(this); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | template <typename T> void TextBox<T>::clay_draw(SkCanvas* canvas, UpdateInputData& io, Clay_RenderCommand* command, bool skiaAA) { |
| 66 | auto& bb = boundingBox.value(); |
nothing calls this directly
no test coverage detected