[WASAPI] fix stream types and frequencies enumeration
[xbmc.git] / xbmc / guilib / DirtyRegion.h
blob51af101b10268734a8fc05e3b3239ab20a7bfe79
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "utils/Geometry.h"
13 #include <vector>
15 class CDirtyRegion : public CRect
17 public:
18 explicit CDirtyRegion(const CRect &rect) : CRect(rect) { m_age = 0; }
19 CDirtyRegion(float left, float top, float right, float bottom) : CRect(left, top, right, bottom) { m_age = 0; }
20 CDirtyRegion() : CRect() { m_age = 0; }
22 int UpdateAge() { return ++m_age; }
23 private:
24 int m_age;
27 typedef std::vector<CDirtyRegion> CDirtyRegionList;