Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
distantlight.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SP_FEDISTANTLIGHT_H_SEEN
3#define SP_FEDISTANTLIGHT_H_SEEN
4
8/*
9 * Authors:
10 * Hugo Rodrigues <haa.rodrigues@gmail.com>
11 * Niko Kiirala <niko@kiirala.com>
12 * Jean-Rene Reinhard <jr@komite.net>
13 *
14 * Copyright (C) 2006,2007 Authors
15 *
16 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
17 */
18
19#include "object/sp-object.h"
20
22 : public SPObject
23{
24public:
27 int tag() const override { return tag_of<decltype(*this)>; }
28
30 float azimuth;
31 bool azimuth_set : 1;
33 float elevation;
34 bool elevation_set : 1;
35
36protected:
37 void build(SPDocument *doc, Inkscape::XML::Node *repr) override;
38 void release() override;
39 void set(SPAttr key, char const *value) override;
41};
42
43#endif // SP_FEDISTANTLIGHT_H_SEEN
44
45/*
46 Local Variables:
47 mode:c++
48 c-file-style:"stroustrup"
49 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
50 indent-tabs-mode:nil
51 fill-column:99
52 End:
53*/
54// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
SPAttr
Definition attributes.h:27
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:101
void release() override
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
~SPFeDistantLight() override
float azimuth
azimuth attribute
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned flags) override
int tag() const override
float elevation
elevation attribute
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
static cairo_user_data_key_t key
Interface for XML documents.
Definition document.h:43