Bug 711063 - Part 1.5: Add operator to gfx::Matrix for size transformation. r=jrmuizel

This commit is contained in:
Bas Schouten 2012-01-05 08:17:51 +01:00
Родитель caf6bef0eb
Коммит c26856a098
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -73,6 +73,16 @@ public:
return retPoint;
}
Size operator *(const Size &aSize) const
{
Size retSize;
retSize.width = aSize.width * _11 + aSize.height * _21;
retSize.height = aSize.width * _12 + aSize.height * _22;
return retSize;
}
Rect TransformBounds(const Rect& rect) const;
// Apply a scale to this matrix. This scale will be applied -before- the