MCPcopy Create free account
hub / github.com/antvis/F2Native / Alpha

Method Alpha

core/graphics/shape/Group.cpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void xg::shape::Group::Alpha(float alpha) {
124 if(!this->IsVisible())
125 return;
126 std::for_each(children_.begin(), children_.end(), [&](std::unique_ptr<Element> &element) -> void { element->Alpha(alpha); });
127}
128
129xg::shape::Group *xg::shape::Group::AddGroup() {
130 auto g = std::make_unique<xg::shape::Group>();

Callers 1

UpdateAttributeMethod · 0.95

Calls 3

IsVisibleMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected