Constructor
GtkImagenew_from_surface
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 |
cairo_surface_t |
A #cairo_surface_t, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |
Return value
Returns: | GtkWidget |
A new |
|
The data is owned by the called function. |