| 81 | } |
| 82 | |
| 83 | std::unique_ptr<CanvasComponent> TextBoxCanvasComponent::get_data_copy() const { |
| 84 | auto toRet = std::make_unique<TextBoxCanvasComponent>(); |
| 85 | toRet->d = d; |
| 86 | toRet->d.editing = false; |
| 87 | *toRet->cursor = *cursor; |
| 88 | toRet->textBox->set_rich_text_data(textBox->get_rich_text_data()); |
| 89 | return toRet; |
| 90 | } |
| 91 | |
| 92 | void TextBoxCanvasComponent::set_data_from(const CanvasComponent& other) { |
| 93 | auto& otherTextBox = static_cast<const TextBoxCanvasComponent&>(other); |
nothing calls this directly
no test coverage detected