wasabi_std_rect.h 658 B

12345678910111213141516171819202122
  1. #ifndef NULLSOFT_BFC_STD_RECT_H
  2. #define NULLSOFT_BFC_STD_RECT_H
  3. #include <bfc/platform/platform.h>
  4. namespace Wasabi
  5. {
  6. namespace Std
  7. {
  8. bool rectIntersect(const RECT& a, const RECT& b, RECT* intersection = NULL);
  9. bool pointInRect(const RECT& r, const POINT& p);
  10. void setRect(RECT* r, int left, int top, int right, int bottom);
  11. RECT makeRect(int left, int top, int right, int bottom);
  12. POINT makePoint(int x, int y);
  13. void setPoint(POINT* p, int x, int y);
  14. void offsetRect(RECT* r, int x, int y);
  15. bool rectEqual(const RECT& a, const RECT& b);
  16. bool rectEqual(const RECT* a, const RECT* b);
  17. void scaleRect(RECT* r, double scale);
  18. }
  19. }
  20. #endif