Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
nr-filter-skeleton.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Filter primitive renderer skeleton class
4 * You can create your new filter primitive renderer by replacing
5 * all occurrences of Skeleton, skeleton and SKELETON with your filter
6 * type, like gaussian or blend in respective case.
7 *
8 * This can be accomplished with the following sed command:
9 * sed -e "s/Skeleton/Name/g" -e "s/skeleton/name/" -e "s/SKELETON/NAME/"
10 * nr-filter-skeleton.cpp >nr-filter-name.cpp
11 *
12 * (on one line, replace occurrences of 'name' with your filter name)
13 *
14 * Remember to convert the .h file too. The sed command is same for both
15 * files.
16 *
17 * Authors:
18 * Niko Kiirala <niko@kiirala.com>
19 *
20 * Copyright (C) 2007 authors
21 *
22 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
23 */
24
26#include "display/cairo-utils.h"
29
30namespace Inkscape {
31namespace Filters {
32
36
40
42{
45
46// cairo_t *ct = cairo_create(out);
47
48// cairo_set_source_surface(ct, in, offset[X], offset[Y]);
49// cairo_paint(ct);
50// cairo_destroy(ct);
51
52 slot.set(_output, out);
53 cairo_surface_destroy(out);
54}
55
56} // namespace Filters
57} // namespace Inkscape
58
59/*
60 Local Variables:
61 mode:c++
62 c-file-style:"stroustrup"
63 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64 indent-tabs-mode:nil
65 fill-column:99
66 End:
67*/
68// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
cairo_surface_t * ink_cairo_surface_create_identical(cairo_surface_t *s)
Create a surface that differs only in pixel content.
Cairo integration helpers.
void render_cairo(FilterSlot &slot) const override
cairo_surface_t * getcairo(int slot)
Returns the pixblock in specified slot.
void set(int slot, cairo_surface_t *s)
Sets or re-sets the pixblock associated with given slot.
struct _cairo_surface cairo_surface_t
Helper class to stream background task notifications as a series of messages.