1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /** @file
3  * @brief SVG tile filter effect
4  *//*
5  * Authors:
6  *   Hugo Rodrigues <haa.rodrigues@gmail.com>
7  *
8  * Copyright (C) 2006 Hugo Rodrigues
9  *
10  * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11  */
12 
13 #ifndef SP_FETILE_H_SEEN
14 #define SP_FETILE_H_SEEN
15 
16 #include "sp-filter-primitive.h"
17 
18 #define SP_FETILE(obj) (dynamic_cast<SPFeTile*>((SPObject*)obj))
19 #define SP_IS_FETILE(obj) (dynamic_cast<const SPFeTile*>((SPObject*)obj) != NULL)
20 
21 /* FeTile base class */
22 class SPFeTile : public SPFilterPrimitive {
23 public:
24 	SPFeTile();
25     ~SPFeTile() override;
26 
27 protected:
28 	void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
29 	void release() override;
30 
31 	void set(SPAttr key, const gchar* value) override;
32 
33 	void update(SPCtx* ctx, unsigned int flags) override;
34 
35 	Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags) override;
36 
37 	void build_renderer(Inkscape::Filters::Filter* filter) override;
38 };
39 
40 #endif /* !SP_FETILE_H_SEEN */
41 
42 /*
43   Local Variables:
44   mode:c++
45   c-file-style:"stroustrup"
46   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
47   indent-tabs-mode:nil
48   fill-column:99
49   End:
50 */
51 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
52