Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
print.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 PRINT_H_INKSCAPE
11#define PRINT_H_INKSCAPE
12
16/*
17 * Author:
18 * Lauris Kaplinski <lauris@kaplinski.com>
19 *
20 * This code is in public domain
21 */
22
23#include <2geom/forward.h>
24
25namespace Gtk {
26class Window;
27}
28
29class SPDocument;
30class SPItem;
31class SPStyle;
32
33namespace Inkscape {
34namespace Extension {
35
36class Print;
37
38} // namespace Extension
39} // namespace Inkscape
40
43 SPItem *context_item = nullptr;
44
45 unsigned int bind(Geom::Affine const &transform, float opacity);
46 unsigned int release();
47 unsigned int fill(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style,
48 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox);
49 unsigned int stroke(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style,
50 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox);
51
52 unsigned int image_R8G8B8A8_N(unsigned char *px, unsigned int w, unsigned int h, unsigned int rs,
53 Geom::Affine const &transform, SPStyle const *style);
54
55 unsigned int text(char const *text, Geom::Point p,
56 SPStyle const *style);
57
58 void get_param(char *name, bool *value);
59
60};
61
62
63/* UI */
64void sp_print_document(Gtk::Window& parentWindow, SPDocument *doc);
65void sp_print_document_to_file(SPDocument *doc, char const *filename);
66
67
68#endif /* !PRINT_H_INKSCAPE */
69
70/*
71 Local Variables:
72 mode:c++
73 c-file-style:"stroustrup"
74 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
75 indent-tabs-mode:nil
76 fill-column:99
77 End:
78*/
79// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
3x3 matrix representing an affine transformation.
Definition affine.h:70
Axis-aligned rectangle that can be empty.
Definition rect.h:203
Sequence of subpaths.
Definition pathvector.h:122
Two-dimensional point that doubles as a vector.
Definition point.h:66
Typed SVG document implementation.
Definition document.h:103
Base class for visual SVG elements.
Definition sp-item.h:109
An SVG style object.
Definition style.h:45
const double w
Definition conic-4.cpp:19
vector< vpsc::Rectangle * > rs
Contains forward declarations of 2geom types.
Definition desktop.h:50
Helper class to stream background task notifications as a series of messages.
void sp_print_document_to_file(SPDocument *doc, char const *filename)
void sp_print_document(Gtk::Window &parentWindow, SPDocument *doc)
Definition print.cpp:80
void get_param(char *name, bool *value)
unsigned int bind(Geom::Affine const &transform, float opacity)
Definition print.cpp:39
unsigned int image_R8G8B8A8_N(unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &transform, SPStyle const *style)
Definition print.cpp:65
unsigned int release()
Definition print.cpp:45
unsigned int fill(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox)
Definition print.cpp:51
unsigned int stroke(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox)
Definition print.cpp:58
unsigned int text(char const *text, Geom::Point p, SPStyle const *style)
Definition print.cpp:71
Inkscape::Extension::Print *SPItem * context_item
Definition print.h:43
Glib::ustring name
Definition toolbars.cpp:55