diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-01-30 08:33:01 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-30 08:33:01 +0000 |
| commit | 267299811df952d08324a39008f52c19641de9e0 (patch) | |
| tree | 28fef736a52cb7a72119d119be8eb663ad20a77f /src/viewbox.h | |
| parent | Translations: update inkscape.pot (diff) | |
| download | inkscape-267299811df952d08324a39008f52c19641de9e0.tar.gz inkscape-267299811df952d08324a39008f52c19641de9e0.zip | |
Move classes derived from SPObject to own directory.
A lot of header clean-up.
Diffstat (limited to 'src/viewbox.h')
| -rw-r--r-- | src/viewbox.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/viewbox.h b/src/viewbox.h deleted file mode 100644 index c71abb610..000000000 --- a/src/viewbox.h +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef __SP_VIEWBOX_H__ -#define __SP_VIEWBOX_H__ - -/* - * viewBox helper class, common code used by root, symbol, marker, pattern, image, view - * - * Authors: - * Lauris Kaplinski <lauris@kaplinski.com> (code extracted from sp-symbol.h) - * Tavmjong Bah - * Johan Engelen - * - * Copyright (C) 2013-2014 Tavmjong Bah, authors - * - * Released under GNU GPL, read the file 'COPYING' for more information - * - */ - -#include <2geom/rect.h> -#include <glib.h> - -class SPItemCtx; - -class SPViewBox { - -public: - SPViewBox(); - - /* viewBox; */ - bool viewBox_set; - Geom::Rect viewBox; // Could use optrect - - /* preserveAspectRatio */ - bool aspect_set; - unsigned int aspect_align; // enum - unsigned int aspect_clip; // enum - - /* Child to parent additional transform */ - Geom::Affine c2p; - - void set_viewBox(const gchar* value); - void set_preserveAspectRatio(const gchar* value); - - /* Adjusts c2p for viewbox */ - void apply_viewbox(const Geom::Rect& in, double scale_none = 1.0); - - SPItemCtx get_rctx( const SPItemCtx* ictx, double scale_none = 1.0); - -}; - -#endif - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-basic-offset:2 - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=2:tabstop=8:softtabstop=2:fileencoding=utf-8:textwidth=99 : |
