blob: 36de1fc0158bc5a93882626bcd25794e21a31b1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// SPDX-License-Identifier: GPL-2.0-or-later
/**
* @file
* Utility functions for previewing icon representation.
*/
/* Authors:
* Jon A. Cruz
* Bob Jamison
* Other dudes from The Inkscape Organization
* Abhishek Sharma
* Anshudhar Kumar Singh <anshudhar2001@gmail.com>
*
* Copyright (C) 2004 Bob Jamison
* Copyright (C) 2005,2010 Jon A. Cruz
* Copyright (C) 2021 Anshudhar Kumar Singh
*
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
#ifndef SP_PREVIEW_UTIL_H
#define SP_PREVIEW_UTIL_H
#include <glibmm/main.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "display/drawing.h"
class SPDocument;
class SPItem;
namespace Inkscape {
namespace UI {
namespace PREVIEW {
// takes doc, drawing, icon, and icon name to produce pixels
GdkPixbuf *render_preview(SPDocument *doc, Inkscape::Drawing &drawing, SPItem *item,
unsigned width_in, unsigned height_in, Geom::OptRect *dboxIn = nullptr);
} // namespace PREVIEW
} // namespace UI
} // namespace Inkscape
#endif
|