Added WIP support for affine transformations to BViews.

Everything untested, but compiles, so it must work. The idea is to introduce
BAffineTransform additionally to the existing Origin and Scale properties of
BViews. One may use it in parallel or as an alternative. Painter in app_server
is not yet aware of the additional transformation. It is however already used
to transform drawing coordinates. It probably needs to work differently,
perhaps only in Painter and AGGTextRenderer.
This commit is contained in:
Stephan Aßmus
2014-02-04 22:53:06 +01:00
parent 339a018112
commit a6db6bd40f
12 changed files with 258 additions and 61 deletions
@@ -9,6 +9,7 @@
#define APP_SERVER_PROTOCOL_STRUCTS_H
#include <AffineTransform.h>
#include <Rect.h>
@@ -21,6 +22,7 @@ struct ViewSetStateInfo {
drawing_mode drawingMode;
BPoint origin;
float scale;
BAffineTransform transform;
join_mode lineJoin;
cap_mode lineCap;
float miterLimit;