projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When we try to open a file that doesn't exist, display an error in the command line...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
rect.h
diff --git
a/synfig-core/trunk/src/synfig/rect.h
b/synfig-core/trunk/src/synfig/rect.h
index
140c5a1
..
cc21e1f
100644
(file)
--- a/
synfig-core/trunk/src/synfig/rect.h
+++ b/
synfig-core/trunk/src/synfig/rect.h
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-51,6
+52,9
@@
public:
static Rect full_plane();
static Rect full_plane();
+ static Rect horizontal_strip(const value_type &y1, const value_type &y2);
+ static Rect vertical_strip(const value_type &x1, const value_type &x2);
+
static Rect zero()
{
return Rect(
static Rect zero()
{
return Rect(
@@
-164,6
+168,10
@@
public:
bool operator&&(const Rect& rhs)const { return etl::intersect(*this, rhs); }
bool operator&&(const Rect& rhs)const { return etl::intersect(*this, rhs); }
+ bool operator==(const Rect &rhs)const { return get_min() == rhs.get_min() && get_max() == rhs.get_max(); }
+
+ bool operator!=(const Rect &rhs)const { return get_min() != rhs.get_min() || get_max() != rhs.get_max(); }
+
bool is_valid()const { return valid(); }
}; // END of class Rect
bool is_valid()const { return valid(); }
}; // END of class Rect