MCPcopy Create free account
hub / github.com/Tencent/tgfx / DropShadowStyle

Method DropShadowStyle

src/layers/layerstyles/DropShadowStyle.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80DropShadowStyle::DropShadowStyle(float offsetX, float offsetY, float blurrinessX, float blurrinessY,
81 const Color& color, bool showBehindLayer)
82 : _offsetX(offsetX), _offsetY(offsetY), _blurrinessX(blurrinessX), _blurrinessY(blurrinessY),
83 _color(color), _showBehindLayer(showBehindLayer) {
84}
85
86Rect DropShadowStyle::filterBounds(const Rect& srcRect, float contentScale) {
87 auto filter = getShadowFilter(contentScale);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected