Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
satellite-reference.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_SP_SATELLITE_REFERENCE_H
11#define SEEN_SP_SATELLITE_REFERENCE_H
12
13#include "object/sp-item.h"
18namespace Inkscape {
19namespace LivePathEffect {
20
22{
23public:
24 SatelliteReference(SPObject *owner, bool hasactive = false)
25 : URIReference(owner)
26 , _hasactive(hasactive)
27 , _active(true)
28 {
29 }
30
31 bool getHasActive() const { return _hasactive; }
32 bool getActive() const { return _active; }
33 void setActive(bool active) { _active = active; }
34
35protected:
36 bool _acceptObject(SPObject *obj) const override;
37
38private:
39 bool _active;
41};
42
43} // namespace LivePathEffect
44} // namespace Inkscape
45
46#endif /* !SEEN_SP_SATELLITE_REFERENCE_H */
47
48/*
49 Local Variables:
50 mode:c++
51 c-file-style:"stroustrup"
52 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
53 indent-tabs-mode:nil
54 fill-column:99
55 End:
56*/
57// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
SatelliteReference(SPObject *owner, bool hasactive=false)
bool _acceptObject(SPObject *obj) const override
A class encapsulating a reference to a particular URI; observers can be notified when the URI comes t...
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.
Some things pertinent to all visible shapes: SPItem, SPItemView, SPItemCtx.