NetSurf
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
f
h
i
k
l
m
n
p
q
r
s
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
b
c
f
g
h
l
p
s
t
Files
File List
Globals
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
g
h
i
j
l
m
n
p
q
r
s
t
u
v
w
x
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
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:161
height
int height
Definition:
gui.c:162
Generated on Thu Mar 20 2025 16:44:31 for NetSurf by
1.9.4