[ CCode ( cname = "gdk_texture_new_for_pixbuf" ) ]
public static Texture for_pixbuf (Pixbuf pixbuf)
Creates a new texture object representing the `GdkPixbuf`.
This function is threadsafe, so that you can e.g. use GTask and [[email protected]_in_thread] to avoid blocking the main thread while loading a big image.
pixbuf |
a `GdkPixbuf` |
a new `GdkTexture` |