mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
implemented RotatedDC
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@53 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -99,6 +99,14 @@ class RealRect {
|
||||
inline RealRect(double x, double y, double w, double h)
|
||||
: position(x,y), size(w,h)
|
||||
{}
|
||||
|
||||
inline operator wxRect() const {
|
||||
return wxRect(position.x, position.y, size.width, size.height);
|
||||
}
|
||||
/// Return a rectangle that is amount larger to all sides
|
||||
inline RealRect grow(double amount) {
|
||||
return RealRect(position.x - amount, position.y - amount, size.width + 2 * amount, size.height + 2 * amount);
|
||||
}
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Operators
|
||||
|
||||
Reference in New Issue
Block a user