| 15 | } |
| 16 | |
| 17 | BBox 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 | |
| 29 | void xg::shape::Image::DrawInner(canvas::CanvasContext &context) const { |
| 30 | // size无效不绘制 |
nothing calls this directly
no outgoing calls
no test coverage detected