/xbmc/guilib/DirtyRegion.h

http://github.com/xbmc/xbmc · C Header · 27 lines · 14 code · 6 blank · 7 comment · 0 complexity · c5193a66db7a21fe2c2764eb9a97f9c1 MD5 · raw file

  1. /*
  2. * Copyright (C) 2005-2018 Team Kodi
  3. * This file is part of Kodi - https://kodi.tv
  4. *
  5. * SPDX-License-Identifier: GPL-2.0-or-later
  6. * See LICENSES/README.md for more information.
  7. */
  8. #pragma once
  9. #include "utils/Geometry.h"
  10. #include <vector>
  11. class CDirtyRegion : public CRect
  12. {
  13. public:
  14. explicit CDirtyRegion(const CRect &rect) : CRect(rect) { m_age = 0; }
  15. CDirtyRegion(float left, float top, float right, float bottom) : CRect(left, top, right, bottom) { m_age = 0; }
  16. CDirtyRegion() : CRect() { m_age = 0; }
  17. int UpdateAge() { return ++m_age; }
  18. private:
  19. int m_age;
  20. };
  21. typedef std::vector<CDirtyRegion> CDirtyRegionList;