Package org.gnome.gdkpixbuf
Class PixbufLoader.Builder<B extends PixbufLoader.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdkpixbuf.PixbufLoader.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
PixbufLoader
public static class PixbufLoader.Builder<B extends PixbufLoader.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building thePixbufLoader
object.This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size.This signal is emitted when a significant area of the image being loaded has been updated.onClosed
(PixbufLoader.ClosedCallback handler) This signal is emitted when gdk_pixbuf_loader_close() is called.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.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building thePixbufLoader
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toPixbufLoader
.- Overrides:
build
in classGObject.Builder<B extends PixbufLoader.Builder<B>>
- Returns:
- a new instance of
PixbufLoader
with the properties that were set in the Builder object.
-
onAreaPrepared
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.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onAreaUpdated
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.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onClosed
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.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSizePrepared
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.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-