From 267299811df952d08324a39008f52c19641de9e0 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 30 Jan 2018 09:33:01 +0100 Subject: Move classes derived from SPObject to own directory. A lot of header clean-up. --- src/viewbox.h | 62 ----------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 src/viewbox.h (limited to 'src/viewbox.h') 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 (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 - -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 : -- cgit v1.2.3