NetSurf
frontends
gtk
gdk.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011 Vincent Sanders <vince@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/** \file
20
* GDK support functions for missing interfaces
21
*/
22
23
#ifndef NETSURF_GTK_GDK_H_
24
#define NETSURF_GTK_GDK_H_
25
26
#include <gtk/gtk.h>
27
28
/** obtain a pixbuf of the specified size from a cairo surface.
29
*
30
* This is the same as the GTK+ 3 gdk_pixbuf_get_from_surface but
31
* actually works and is available on gtk 2
32
*/
33
GdkPixbuf *
nsgdk_pixbuf_get_from_surface
(cairo_surface_t *surface,
int
width
,
int
height
);
34
35
#endif
/* NETSURF_GTK_GDK_H */
nsgdk_pixbuf_get_from_surface
GdkPixbuf * nsgdk_pixbuf_get_from_surface(cairo_surface_t *surface, int width, int height)
obtain a pixbuf of the specified size from a cairo surface.
Definition:
gdk.c:61
width
int width
Definition:
gui.c:160
height
int height
Definition:
gui.c:161
Generated on Fri Dec 27 2024 08:42:09 for NetSurf by
1.9.4