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

Method set_data_from

src/CanvasComponents/TextBoxCanvasComponent.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void TextBoxCanvasComponent::set_data_from(const CanvasComponent& other) {
93 auto& otherTextBox = static_cast<const TextBoxCanvasComponent&>(other);
94 d = otherTextBox.d;
95 *cursor = *otherTextBox.cursor;
96 textBox->set_rich_text_data(otherTextBox.textBox->get_rich_text_data());
97}
98
99void TextBoxCanvasComponent::init_text_box(DrawingProgram& drawP) {
100 textBox->set_font_data(drawP.world.main.fonts); // Getting a segfault relating to the paragraph cache means that the font collection hasn't been set yet

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