![]() |
![]() |
Public Member Functions | |
virtual | ~PixbufLoader () |
GdkPixbufLoader* | gobj () |
Provides access to the underlying C GObject. | |
const GdkPixbufLoader* | gobj () const |
Provides access to the underlying C GObject. | |
GdkPixbufLoader* | gobj_copy () |
void | write (const guint8* buf, gsize count) |
Causes the pixbuf loader to parse the next count bytes of an image. | |
void | close () |
Informs a pixbuf loader that no further writes with PixbufLoader::write() will occur, so that it can free its internal loading structures. | |
Glib::RefPtr<Gdk::Pixbuf> | get_pixbuf () |
Glib::RefPtr<Gdk::PixbufAnimation> | get_animation () |
Glib::SignalProxy0<void> | signal_area_prepared () |
Glib::SignalProxy4< void, int, int, int, int > | signal_area_updated () |
Glib::SignalProxy0<void> | signal_closed () |
Static Public Member Functions | |
Glib::RefPtr<PixbufLoader> | create () |
Creates a new pixbuf loader object. | |
Glib::RefPtr<PixbufLoader> | create (const Glib::ustring& image_type) |
Creates a new pixbuf loader object for a specific image type. | |
Protected Member Functions | |
PixbufLoader () | |
Constructs a pixbuf loader object. | |
PixbufLoader (const Glib::ustring& image_type) | |
Constructs a pixbuf loader object for a specific image type. | |
virtual void | on_area_prepared () |
virtual void | on_area_updated (int x, int y, int width, int height) |
virtual void | on_closed () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gdk::PixbufLoader> | wrap (GdkPixbufLoader* object, bool take_copy=false) |
|
|
|
Constructs a pixbuf loader object.
|
|
Constructs a pixbuf loader object for a specific image type. Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type image_type, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.
|
|
Informs a pixbuf loader that no further writes with PixbufLoader::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 exception will be thrown. If you're just cancelling a load rather than expecting it to be finished, writing an empty
|
|
Creates a new pixbuf loader object for a specific image type. Creates a new pixbuf loader object that always attempts to parse image data as if it were an image of type image_type, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.
|
|
Creates a new pixbuf loader object.
|
|
|
|
|
|
Provides access to the underlying C GObject.
|
|
Provides access to the underlying C GObject.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Causes the pixbuf loader to parse the next count bytes of an image. It will return if the data was loaded successfully, and throw an exception if an error occurred. In the latter case, the loader will be closed, and will not accept further writes.
|
|
|