Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)
| 514 | |
| 515 | // Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) |
| 516 | struct ImVec2ih |
| 517 | { |
| 518 | short x, y; |
| 519 | constexpr ImVec2ih() : x(0), y(0) {} |
| 520 | constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} |
| 521 | constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} |
| 522 | }; |
| 523 | |
| 524 | // Helper: ImRect (2D axis aligned bounding-box) |
| 525 | // NB: we can't rely on ImVec2 math operators being available here! |
no outgoing calls
no test coverage detected