1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /** @file 3 * TODO: insert short description here 4 *//* 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_GRADIENT_REFERENCE_H 11 #define SEEN_SP_GRADIENT_REFERENCE_H 12 13 #include "uri-references.h" 14 15 class SPGradient; 16 class SPObject; 17 18 class SPGradientReference : public Inkscape::URIReference { 19 public: SPGradientReference(SPObject * obj)20 SPGradientReference(SPObject *obj) : URIReference(obj) {} 21 getObject()22 SPGradient *getObject() const { 23 return reinterpret_cast<SPGradient *>(URIReference::getObject()); 24 } 25 26 protected: 27 bool _acceptObject(SPObject *obj) const override; 28 }; 29 30 31 #endif /* !SEEN_SP_GRADIENT_REFERENCE_H */ 32 33 /* 34 Local Variables: 35 mode:c++ 36 c-file-style:"stroustrup" 37 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) 38 indent-tabs-mode:nil 39 fill-column:99 40 End: 41 */ 42 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : 43