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

Method get_rich_text_data

src/RichText/TextBox.cpp:443–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443TextData TextBox::get_rich_text_data() {
444 TextData toRet;
445 for(auto& p : paragraphs) {
446 toRet.paragraphs.emplace_back();
447 toRet.paragraphs.back().text = p.text;
448 toRet.paragraphs.back().pStyleData = p.pStyleData;
449 }
450 toRet.tStyleMods = tStyleMods;
451 return toRet;
452}
453
454TextData TextBox::get_rich_text_data_between(TextPosition p1, TextPosition p2) {
455 auto [start, end] = get_start_end_text_pos(p1, p2);

Callers 11

startTextInputFunction · 0.80
commitAllFunction · 0.80
add_textbox_undoMethod · 0.80
saveMethod · 0.80
save_fileMethod · 0.80
get_data_copyMethod · 0.80
set_data_fromMethod · 0.80
hold_undo_dataMethod · 0.80
get_all_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected