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

Method setFontShadowColor

src/eepp/ui/uitooltip.cpp:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void UITooltip::setFontShadowColor( const Color& color ) {
220 if ( mStyleConfig.ShadowColor != color ) {
221 mStyleConfig.ShadowColor = color;
222 if ( mStyleConfig.ShadowColor != Color::Transparent )
223 mStyleConfig.Style |= Text::Shadow;
224 else
225 mStyleConfig.Style &= ~Text::Shadow;
226 mTextCache->setShadowColor( color );
227 onAlphaChange();
228 invalidateDraw();
229 }
230}
231
232const Vector2f& UITooltip::getFontShadowOffset() const {
233 return mStyleConfig.ShadowOffset;

Callers 1

onUpdateMethod · 0.45

Calls 1

setShadowColorMethod · 0.80

Tested by

no test coverage detected