MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setFontStyleConfig

Method setFontStyleConfig

src/eepp/ui/uitextview.cpp:628–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void UITextView::setFontStyleConfig( const UIFontStyleConfig& fontStyleConfig ) {
629 mFontStyleConfig = fontStyleConfig;
630 setFont( fontStyleConfig.getFont() );
631 setFontSize( fontStyleConfig.getFontCharacterSize() );
632 setFontColor( fontStyleConfig.getFontColor() );
633 setFontShadowColor( fontStyleConfig.getFontShadowColor() );
634 setOutlineThickness( fontStyleConfig.getOutlineThickness() );
635 setOutlineColor( fontStyleConfig.getOutlineColor() );
636 setFontStyle( fontStyleConfig.getFontStyle() );
637 onFontStyleChanged();
638}
639
640std::pair<int, int> UITextView::getTextSelectionRange() const {
641 return { mSelCurInit, mSelCurEnd };

Callers

nothing calls this directly

Calls 3

getOutlineThicknessMethod · 0.80
getFontStyleMethod · 0.80
getFontMethod · 0.45

Tested by

no test coverage detected