Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
lpe-clone-original.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LPE_CLONE_ORIGINAL_H
3#define INKSCAPE_LPE_CLONE_ORIGINAL_H
4
5/*
6 * Inkscape::LPECloneOriginal
7 *
8 * Copyright (C) Johan Engelen 2012 <j.b.c.engelen@alumnus.utwente.nl>
9 *
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11 */
12#include "live_effects/effect.h"
17
18namespace Inkscape {
19namespace LivePathEffect {
20
22
24public:
27 void doEffect(Geom::PathVector &curve) override;
28 void doBeforeEffect (SPLPEItem const* lpeitem) override;
29 bool doOnOpen(SPLPEItem const *lpeitem) override;
30 void doOnRemove(SPLPEItem const * /*lpeitem*/) override;
31 bool getHolderRemove() override;
32 Gtk::Widget *newWidget() override;
34
35private:
40 Glib::ustring old_attributes;
41 Glib::ustring old_css_properties;
42 Glib::ustring linked;
43 void syncOriginal();
44 void cloneAttributes(SPObject *origin, SPObject *dest, const gchar *attributes, const gchar *css_properties,
45 bool init);
46 bool sync;
47 bool holderRemove = false; // move to effect if use more
50};
51
52}; //namespace LivePathEffect
53}; //namespace Inkscape
54
55#endif
Point origin
Definition aa.cpp:227
Sequence of subpaths.
Definition pathvector.h:122
void doOnRemove(SPLPEItem const *) override
LPECloneOriginal & operator=(const LPECloneOriginal &)=delete
bool doOnOpen(SPLPEItem const *lpeitem) override
Is performed on load document or revert If the item is fixed legacy return true.
Gtk::Widget * newWidget() override
This creates a managed widget.
void cloneAttributes(SPObject *origin, SPObject *dest, const gchar *attributes, const gchar *css_properties, bool init)
LPECloneOriginal(const LPECloneOriginal &)=delete
void doBeforeEffect(SPLPEItem const *lpeitem) override
Is performed each time before the effect is updated.
void doEffect(Geom::PathVector &curve) override
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Helper class to stream background task notifications as a series of messages.
Definition curve.h:24
void init(int argc, char **argv, Toy *t, int width=600, int height=600)