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

Method onAlphaChange

src/eepp/ui/uitextview.cpp:469–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void UITextView::onAlphaChange() {
470 Color color( getFontColor() );
471 Color newColor( color.r, color.g, color.b, color.a * mAlpha / 255.f );
472 mTextCache.setFillColor( newColor );
473
474 color = getFontShadowColor();
475 newColor = Color( color.r, color.g, color.b, color.a * mAlpha / 255.f );
476 mTextCache.setShadowColor( newColor );
477
478 color = getOutlineColor();
479 newColor = Color( color.r, color.g, color.b, color.a * mAlpha / 255.f );
480 mTextCache.setOutlineColor( newColor );
481
482 invalidateDraw();
483}
484
485void UITextView::onPaddingChange() {
486 autoWrap();

Callers

nothing calls this directly

Calls 3

setShadowColorMethod · 0.80
setFillColorMethod · 0.45
setOutlineColorMethod · 0.45

Tested by

no test coverage detected