Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
translucency-group.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) 2021-2024 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_DISPLAY_TRANSLUCENCY
11#define SEEN_DISPLAY_TRANSLUCENCY
12
13#include <vector>
14
15class SPItem;
16
17namespace Inkscape::Display {
18
20public:
21 TranslucencyGroup(unsigned int dkey);
22
23 SPItem *getSolidItem() const { return _solid_item; }
25private:
26 unsigned int _dkey;
27 SPItem *_solid_item = nullptr;
28 std::vector<SPItem *> _translucent_items;
29
31};
32
33} /* namespace Inkscape::Display */
34
35#endif // SEEN_INKSCAPE_NR_LIGHT_H
36/*
37 Local Variables:
38 mode:c++
39 c-file-style:"stroustrup"
40 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41 indent-tabs-mode:nil
42 fill-column:99
43 End:
44*/
45// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
void _generateTranslucentItems(SPItem *parent)
Generate a new list of sibling items (recursive)
std::vector< SPItem * > _translucent_items
void setSolidItem(SPItem *item)
Set a specific item as the solid item, all other items are made translucent.
Base class for visual SVG elements.
Definition sp-item.h:109
static char const *const parent
Definition dir-util.cpp:70
SPItem * item
Rendering-related code.
Definition desktop.h:133