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

Method CalculateBox

core/graphics/shape/Image.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17BBox shape::Image::CalculateBox(canvas::CanvasContext &context) const {
18 return {
19 .x = static_cast<float>(point_.x),
20 .y = static_cast<float>(point_.y),
21 .width = static_cast<float>(size_.width),
22 .height = static_cast<float>(size_.height),
23 .minX = static_cast<float>(point_.x),
24 .maxX= static_cast<float>(point_.x + size_.width),
25 .minY = static_cast<float>(point_.y),
26 .maxY = static_cast<float>(point_.y + size_.height)};
27}
28
29void xg::shape::Image::DrawInner(canvas::CanvasContext &context) const {
30 // size无效不绘制

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected