source: appstream-generator/src/asgen/bindings/gdkpixbuf.d @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.6 KB
Line 
1/*
2 * Copyright (C) 2016 Matthias Klumpp <matthias@tenstral.net>
3 *
4 * Licensed under the GNU Lesser General Public License Version 3
5 *
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the license, or
9 * (at your option) any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20module asgen.bindings.gdkpixbuf;
21
22import gi.glibtypes;
23import gi.giotypes;
24import asgen.bindings.cairo;
25
26extern(C):
27nothrow:
28@nogc:
29
30enum GdkInterpType {
31        NEAREST,
32        TILES,
33        BILINEAR,
34        HYPER
35};
36
37struct _GdkPixbuf {}
38alias GdkPixbuf = _GdkPixbuf*;
39
40GdkPixbuf gdk_pixbuf_new_from_file (const(char) *filename, GError **error);
41GdkPixbuf gdk_pixbuf_new_from_stream (GInputStream *stream, GCancellable *cancellable, GError **error);
42
43int gdk_pixbuf_get_width (GdkPixbuf pixbuf);
44int gdk_pixbuf_get_height (GdkPixbuf pixbuf);
45
46GdkPixbuf gdk_pixbuf_scale_simple (const(GdkPixbuf) src, int dest_width, int dest_height, GdkInterpType interp_type);
47
48bool gdk_pixbuf_save_to_buffer (GdkPixbuf pixbuf, char **buffer, size_t *buffer_size, const(char) *type, GError **error, ...);
49bool gdk_pixbuf_save (GdkPixbuf pixbuf, const(char) *filename, const(char) *type, GError **error, ...);
Note: See TracBrowser for help on using the repository browser.