MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / get_data_copy

Method get_data_copy

src/CanvasComponents/TextBoxCanvasComponent.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83std::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
92void TextBoxCanvasComponent::set_data_from(const CanvasComponent& other) {
93 auto& otherTextBox = static_cast<const TextBoxCanvasComponent&>(other);

Callers

nothing calls this directly

Calls 2

set_rich_text_dataMethod · 0.80
get_rich_text_dataMethod · 0.80

Tested by

no test coverage detected