GObject.Object
GdkPixbuf.PixbufLoader
Import line: | GdkPixbuf = imports.gi.GdkPixbuf; |
GIR File: | GdkPixbuf-2.0.gir |
C documentation: | GdkPixbufLoader |
Class : | PixbufLoader |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
GdkPixbuf.PixbufLoader | |
priv : void*
read only
|
GdkPixbuf.PixbufLoader |
Method / Constructor | Defined By | |
---|---|---|
new GdkPixbuf.PixbufLoader
(Object properties)
Create a new GdkPixbuf.PixbufLoader
Create a new GdkPixbuf.PixbufLoader
|
||
Create a new GdkPixbuf.PixbufLoader
Create a new GdkPixbuf.PixbufLoader
|
||
Create a new GdkPixbuf.PixbufLoader
Create a new GdkPixbuf.PixbufLoader
|
||
close
()
:
Boolean
Informs a pixbuf loader that no further writes with gdk_pixbuf_loader_write() will occur, so that it can free its internal loading structures.
Informs a pixbuf loader that no further writes with gdk_pixbuf_loader_write() will occur, so that it can free its internal loading structures. Also, tries to parse any data that hasn't yet been parsed; if the remaining data is partial or corrupt, an error will be returned. If FALSE is returned, error will be set to an error from the GDK_PIXBUF_ERROR or G_FILE_ERROR domains. If you're just cancelling a load rather than expecting it to be finished, passing NULL for error to ignore it is reasonable. ssed out via the update_area signal
|
GdkPixbuf.PixbufLoader | |
get_animation
()
:
GdkPixbuf.PixbufAnimation
Queries the GdkPixbufAnimation that a pixbuf loader is currently creating.
Queries the GdkPixbufAnimation that a pixbuf loader is currently creating. In general it only makes sense to call this function after the "area-prepared" signal has been emitted by the loader. If the loader doesn't have enough bytes yet (hasn't emitted the "area-prepared" signal) this function will return NULL. t enough data has been read to determine the information.
|
GdkPixbuf.PixbufLoader | |
get_format
()
:
GdkPixbuf.PixbufFormat
Obtains the available information about the format of the currently loading image file.
Obtains the available information about the format of the currently loading image file. by GdkPixbuf and should not be freed.
|
GdkPixbuf.PixbufLoader | |
get_pixbuf
()
:
GdkPixbuf.Pixbuf
Queries the GdkPixbuf that a pixbuf loader is currently creating.
Queries the GdkPixbuf that a pixbuf loader is currently creating. In general it only makes sense to call this function after the "area-prepared" signal has been emitted by the loader; this means that enough data has been read to know the size of the image that will be allocated. If the loader has not received enough data via gdk_pixbuf_loader_write(), then this function returns NULL. The returned pixbuf will be the same in all future calls to the loader, so simply calling g_object_ref() should be sufficient to continue using it. Additionally, if the loader is an animation, it will return the "static image" of the animation (see gdk_pixbuf_animation_get_static_image()). enough data has been read to determine how to create the image buffer.
|
GdkPixbuf.PixbufLoader | |
Causes the image to be scaled while it is loaded.
Causes the image to be scaled while it is loaded. The desired image size can be determined relative to the original size of the image by calling gdk_pixbuf_loader_set_size() from a signal handler for the ::size-prepared signal. Attempts to set the desired image size are ignored after the emission of the ::size-prepared signal.
|
GdkPixbuf.PixbufLoader | |
This will cause a pixbuf loader to parse the next count bytes of an image.
This will cause a pixbuf loader to parse the next count bytes of an image. It will return TRUE if the data was loaded successfully, and FALSE if an error occurred. In the latter case, the loader will be closed, and will not accept further writes. If FALSE is returned, error will be set to an error from the GDK_PIXBUF_ERROR or G_FILE_ERROR domains. cannot parse the buffer.
|
GdkPixbuf.PixbufLoader |
Event | Defined By | |
---|---|---|
area_prepared (PixbufLoader self)
:
none
This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size.
This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size. After this signal is emitted, applications can call gdk_pixbuf_loader_get_pixbuf() to fetch the partially-loaded pixbuf.
|
GdkPixbuf.PixbufLoader | |
This signal is emitted when a significant area of the image being loaded has been updated.
This signal is emitted when a significant area of the image being loaded has been updated. Normally it means that a complete scanline has been read in, but it could be a different area as well. Applications can use this signal to know when to repaint areas of an image that is being loaded.
|
GdkPixbuf.PixbufLoader | |
closed (PixbufLoader self)
:
none
This signal is emitted when gdk_pixbuf_loader_close() is called.
This signal is emitted when gdk_pixbuf_loader_close() is called. It can be used by different parts of an application to receive notification when an image loader is closed by the code that drives it.
|
GdkPixbuf.PixbufLoader | |
This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create.
This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create. Applications can call gdk_pixbuf_loader_set_size() in response to this signal to set the desired size to which the image should be scaled.
|
GdkPixbuf.PixbufLoader |