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

Method set_initial_text_style

src/RichText/TextBox.cpp:587–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586
587void TextBox::set_initial_text_style(const skia::textlayout::TextStyle& tStyle) {
588 if(!tStyle.equals(initialTStyle)) {
589 initialTStyle = tStyle;
590 needsRebuild = true;
591 }
592}
593
594void TextBox::set_initial_text_style_modifier(const std::shared_ptr<TextStyleModifier>& modifier) {
595 if(tStyleMods.empty() || tStyleMods[0].pos != TextPosition{0, 0}) {

Callers 4

layoutMethod · 0.80
clay_drawMethod · 0.80
clay_drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected