From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/util/preview.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/util/preview.h (limited to 'src/util/preview.h') diff --git a/src/util/preview.h b/src/util/preview.h new file mode 100644 index 0000000..36de1fc --- /dev/null +++ b/src/util/preview.h @@ -0,0 +1,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 + * + * 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 +#include + +#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 -- cgit v1.2.3