BsRectOffset.h 488 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "BsPrerequisites.h"
  3. namespace BansheeEngine
  4. {
  5. /**
  6. * @brief Rectangle represented in the form of offsets
  7. * from some parent rectangle.
  8. */
  9. struct RectOffset
  10. {
  11. RectOffset()
  12. :left(0), right(0), top(0), bottom(0)
  13. { }
  14. RectOffset(INT32 left, INT32 right, INT32 top, INT32 bottom)
  15. :left(left), right(right), top(top), bottom(bottom)
  16. { }
  17. INT32 left, right, top, bottom;
  18. };
  19. BS_ALLOW_MEMCPY_SERIALIZATION(RectOffset);
  20. }