xbmc
xbmc
guilib
DirtyRegion.h
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
15
class
CDirtyRegion
:
public
CRect
16
{
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; }
21
22
int
UpdateAge() {
return
++m_age; }
23
private
:
24
int
m_age;
25
};
26
27
typedef
std::vector<CDirtyRegion> CDirtyRegionList;
CRectGen< float >
CDirtyRegion
Definition:
DirtyRegion.h:15
Generated by
1.8.13