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

Method removeFillStyles

src/layers/ShapeLayer.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ShapeLayer::removeFillStyles() {
67 if (_fillStyles.empty()) {
68 return;
69 }
70 for (const auto& style : _fillStyles) {
71 detachProperty(style.get());
72 }
73 _fillStyles = {};
74 invalidateContent();
75}
76
77void ShapeLayer::setFillStyle(std::shared_ptr<ShapeStyle> fillStyle) {
78 if (fillStyle == nullptr) {

Callers 1

TGFX_TESTFunction · 0.80

Calls 2

emptyMethod · 0.45
getMethod · 0.45

Tested by 1

TGFX_TESTFunction · 0.64