Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
canvas-item-buffer.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
#ifndef SEEN_CANVAS_ITEM_BUFFER_H
3
#define SEEN_CANVAS_ITEM_BUFFER_H
4
9
/*
10
* Author:
11
* See git history.
12
*
13
* Copyright (C) 2020 Authors
14
*
15
* Rewrite of SPCanvasBuf.
16
*
17
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
18
*
19
*/
20
21
#include <
2geom/rect.h
>
22
#include <cairomm/context.h>
23
24
namespace
Inkscape
{
25
29
struct
CanvasItemBuffer
30
{
31
Geom::IntRect
rect
;
32
int
device_scale
;
// For high DPI monitors.
33
Cairo::RefPtr<Cairo::Context>
cr
;
34
bool
outline_pass
;
35
};
36
37
}
// namespace Inkscape
38
39
#endif
// SEEN_CANVAS_ITEM_BUFFER_H
40
41
/*
42
Local Variables:
43
mode:c++
44
c-file-style:"stroustrup"
45
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46
indent-tabs-mode:nil
47
fill-column:99
48
End:
49
*/
50
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
Geom::GenericRect
Axis aligned, non-empty, generic rectangle.
Definition
generic-rect.h:60
Inkscape
Helper class to stream background task notifications as a series of messages.
Definition
actions-canvas-snapping.h:27
rect.h
Axis-aligned rectangle.
Inkscape::CanvasItemBuffer
Class used when rendering canvas items.
Definition
canvas-item-buffer.h:30
Inkscape::CanvasItemBuffer::cr
Cairo::RefPtr< Cairo::Context > cr
Definition
canvas-item-buffer.h:33
Inkscape::CanvasItemBuffer::outline_pass
bool outline_pass
Definition
canvas-item-buffer.h:34
Inkscape::CanvasItemBuffer::rect
Geom::IntRect rect
Definition
canvas-item-buffer.h:31
Inkscape::CanvasItemBuffer::device_scale
int device_scale
Definition
canvas-item-buffer.h:32
src
display
control
canvas-item-buffer.h
Generated on Sun Jun 15 2025 04:01:06 for Inkscape by
1.9.8