Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
lpe-powermask.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LPE_POWERMASK_H
3#define INKSCAPE_LPE_POWERMASK_H
4
5/*
6 * Inkscape::LPEPowerMask
7 *
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#include "live_effects/effect.h"
15
16namespace Inkscape {
17namespace LivePathEffect {
18
19class LPEPowerMask : public Effect {
20public:
22 ~LPEPowerMask() override;
23 void doOnApply (SPLPEItem const * lpeitem) override;
24 void doBeforeEffect (SPLPEItem const* lpeitem) override;
25 void doEffect(Geom::PathVector &curve) override;
26 void doOnRemove(SPLPEItem const* /*lpeitem*/) override;
27 void doOnVisibilityToggled(SPLPEItem const* lpeitem) override;
29 void tryForkMask();
30 Glib::ustring getId();
31 void setMask();
32private:
35 //BoolParam wrap;
39 std::optional<Colors::Color> previous_color;
41};
42
45
46} //namespace LivePathEffect
47} //namespace Inkscape
48
49#endif
Sequence of subpaths.
Definition pathvector.h:122
Sequence of contiguous curves, aka spline.
Definition path.h:353
void doEffect(Geom::PathVector &curve) override
std::optional< Colors::Color > previous_color
void doOnApply(SPLPEItem const *lpeitem) override
Is performed a single time when the effect is freshly applied to a path.
void doOnVisibilityToggled(SPLPEItem const *lpeitem) override
void doBeforeEffect(SPLPEItem const *lpeitem) override
Is performed each time before the effect is updated.
void doOnRemove(SPLPEItem const *) override
The set of selected SPObjects for a given document and layer model.
Definition selection.h:80
void sp_inverse_powermask(Inkscape::Selection *sel)
void sp_remove_powermask(Inkscape::Selection *sel)
Helper class to stream background task notifications as a series of messages.
Definition curve.h:24