| 3 | #include "../../utils/common.h" |
| 4 | |
| 5 | BBox xg::shape::Rect::CalculateBox(canvas::CanvasContext &context) const { |
| 6 | return {static_cast<float>(point_.x), static_cast<float>(point_.x + size_.width), static_cast<float>(point_.y), |
| 7 | static_cast<float>(point_.y + size_.height)}; |
| 8 | } |
| 9 | |
| 10 | void xg::shape::Rect::CreatePath(canvas::CanvasContext &context) const { |
| 11 | context.BeginPath(); |