MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setTextDecoration

Method setTextDecoration

snap_drawing/src/snap_drawing/cpp/Layers/TextLayer.cpp:247–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void TextLayer::applyGradientToTextPaint(Paint& paint) {
248 if (_textLayout != nullptr) {
249 _gradientWrapper.update(_textLayout->getBounds());
250 _gradientWrapper.applyToPaint(paint);
251 }
252}
253
254bool TextLayer::hasTextShadow() const {
255 auto isVisible = _textShadow.opacity > 0;

Callers 1

TextLayerClass.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected