Constructor
GtkImagenew_from_surface
since: 3.10
Declaration [src]
GtkWidget*
gtk_image_new_from_surface (
cairo_surface_t* surface
)
Description [src]
Creates a new GtkImage displaying surface.
The GtkImage does not assume a reference to the
surface; you still need to unref it if you own references.
GtkImage will add its own reference rather than adopting yours.
Available since: 3.10
Parameters
surface-
Type:
cairo_surface_tA #cairo_surface_t, or
NULL.The argument can be NULL.The data is owned by the caller of the function.
Return value
Type: GtkWidget
A new GtkImage.
| The data is owned by the called function. |