diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-03-17 09:01:27 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-03-17 09:01:27 +0000 |
| commit | a3dda4d25b4b6ed4d23e3003fa4538cb1c5df0e1 (patch) | |
| tree | fbd7e8434b91b3e4343fc5876816d2e1b8fc744c /src/display/sodipodi-ctrlrect.h | |
| parent | Remove some compiling warns (diff) | |
| download | inkscape-a3dda4d25b4b6ed4d23e3003fa4538cb1c5df0e1.tar.gz inkscape-a3dda4d25b4b6ed4d23e3003fa4538cb1c5df0e1.zip | |
Modifiy CtrlRect to work with rotated canvas.
(bzr r15600)
Diffstat (limited to 'src/display/sodipodi-ctrlrect.h')
| -rw-r--r-- | src/display/sodipodi-ctrlrect.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/display/sodipodi-ctrlrect.h b/src/display/sodipodi-ctrlrect.h index 08a085649..02fc85647 100644 --- a/src/display/sodipodi-ctrlrect.h +++ b/src/display/sodipodi-ctrlrect.h @@ -4,14 +4,17 @@ /** * @file * Simple non-transformed rectangle, usable for rubberband. + * Modified to work with rotated canvas. */ /* * Authors: * Lauris Kaplinski <lauris@ximian.com> * Carl Hetherington <inkscape@carlh.net> + * Tavmjong Bah <tavjong@free.fr> * * Copyright (C) 1999-2001 Lauris Kaplinski * Copyright (C) 2000-2001 Ximian, Inc. + * Copyright (C) 2017 Tavmjong Bah * * Released under GNU GPL * @@ -21,6 +24,7 @@ #include "sp-canvas-item.h" #include <2geom/rect.h> #include <2geom/int-rect.h> +#include <2geom/transforms.h> struct SPCanvasBuf; @@ -48,23 +52,24 @@ private: void _requestUpdate(); Geom::Rect _rect; + Geom::Affine _affine; + bool _has_fill; bool _dashed; bool _checkerboard; Geom::OptIntRect _area; - gint _shadow_size; + gint _shadow_width; guint32 _border_color; guint32 _fill_color; guint32 _shadow_color; - int _shadow; }; struct CtrlRectClass : public SPCanvasItemClass {}; GType sp_ctrlrect_get_type(); -#endif // SEEN_RUBBERBAND_H +#endif // SEEN_CTRLRECT_H /* Local Variables: |
