NetSurf
Functions
gdk.c File Reference
#include <string.h>
#include "utils/log.h"
#include "gtk/gdk.h"
Include dependency graph for gdk.c:

Go to the source code of this file.

Functions

static void convert_alpha (guchar *dest_data, int dest_stride, guchar *src_data, int src_stride, int width, int height)
 
GdkPixbuf * nsgdk_pixbuf_get_from_surface (cairo_surface_t *surface, int scwidth, int scheight)
 obtain a pixbuf of the specified size from a cairo surface. More...
 

Function Documentation

◆ convert_alpha()

static void convert_alpha ( guchar *  dest_data,
int  dest_stride,
guchar *  src_data,
int  src_stride,
int  width,
int  height 
)
static

Definition at line 26 of file gdk.c.

References height, and width.

Referenced by nsgdk_pixbuf_get_from_surface().

Here is the caller graph for this function:

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