PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 9#pragma once
10
11#include "utils/Geometry.h"
12
13#include <vector>
14
15class CDirtyRegion : public CRect
16{
17public:
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; }
21
22  int UpdateAge() { return ++m_age; }
23private:
24  int m_age;
25};
26
27typedef std::vector<CDirtyRegion> CDirtyRegionList;