[aseprite] 183/308: Add some gfx::Region operators
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit bf9994387d3201f3d63f85f2b34637f2c48af672
Author: David Capello <davidcapello at gmail.com>
Date: Mon Jan 4 17:48:56 2016 -0300
Add some gfx::Region operators
---
src/gfx/region.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gfx/region.h b/src/gfx/region.h
index 78e87a7..8678b22 100644
--- a/src/gfx/region.h
+++ b/src/gfx/region.h
@@ -1,5 +1,5 @@
// Aseprite Gfx Library
-// Copyright (C) 2001-2013, 2015 David Capello
+// Copyright (C) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
@@ -99,6 +99,11 @@ namespace gfx {
Rect operator[](int i);
const Rect operator[](int i) const;
+ Region& operator+=(const Region& b) { return createUnion(*this, b); }
+ Region& operator|=(const Region& b) { return createUnion(*this, b); }
+ Region& operator&=(const Region& b) { return createIntersection(*this, b); }
+ Region& operator-=(const Region& b) { return createSubtraction(*this, b); }
+
private:
mutable details::Region m_region;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list