NetSurf
Functions
gdk.h File Reference

GDK support functions for missing interfaces. More...

#include <gtk/gtk.h>
Include dependency graph for gdk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 

Detailed Description

GDK support functions for missing interfaces.

Definition in file gdk.h.

Function Documentation

◆ 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.

This is the same as the GTK+ 3 gdk_pixbuf_get_from_surface but actually works and is available on gtk 2

Definition at line 61 of file gdk.c.

References convert_alpha(), height, NSLOG, and width.

Referenced by gui_search_web_provider_update(), gui_window_set_icon(), and make_toolbar_item_websearch().

Here is the call graph for this function:
Here is the caller graph for this function: