Package ch.bailu.gtk.gdkpixbuf
Class PixbufFormat
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdkpixbuf.PixbufFormat
- All Implemented Interfaces:
PointerInterface
A `GdkPixbufFormat` contains information about the image format accepted
by a module.
Only modules should access the fields directly, applications should
use the `gdk_pixbuf_format_*` family of functions.
by a module.
Only modules should access the fields directly, applications should
use the `gdk_pixbuf_format_*` family of functions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of `format`.voidfree()Frees the resources allocated when copying a `GdkPixbufFormat`
using gdk_pixbuf_format_copy()static ClassHandlerReturns a description of the format.a description of the image formatthe message domain for the `description`the name of the image formatthe signature of the modulestatic intReturns information about the license of the image loader for the format.getName()Returns the name of the format.static longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizebooleanReturns whether this image format is disabled.booleanisSaveOptionSupported(Str option_key) Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.booleanisSaveOptionSupported(String option_key) Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.booleanReturns whether this image format is scalable.booleanReturns whether pixbufs can be saved in the given format.voidsetDisabled(boolean disabled) Disables or enables an image format.voidsetFieldDescription(Str description) a description of the image formatvoidsetFieldDomain(Str domain) the message domain for the `description`voidsetFieldName(Str name) the name of the image formatvoidsetFieldSignature(PixbufModulePattern signature) the signature of the moduleMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
NAME
the name of the image format- See Also:
-
SIGNATURE
the signature of the module- See Also:
-
DOMAIN
the message domain for the `description`- See Also:
-
DESCRIPTION
a description of the image format- See Also:
-
-
Constructor Details
-
PixbufFormat
-
-
Method Details
-
getClassHandler
-
setFieldName
the name of the image format -
getFieldName
the name of the image format -
setFieldSignature
the signature of the module -
getFieldSignature
the signature of the module -
setFieldDomain
the message domain for the `description` -
getFieldDomain
the message domain for the `description` -
setFieldDescription
a description of the image format -
getFieldDescription
a description of the image format -
copy
Creates a copy of `format`.- Returns:
- the newly allocated copy of a `GdkPixbufFormat`. Use gdk_pixbuf_format_free() to free the resources when done
-
free
public void free()Frees the resources allocated when copying a `GdkPixbufFormat`
using gdk_pixbuf_format_copy() -
getDescription
Returns a description of the format.- Returns:
- a description of the format.
-
getLicense
Returns information about the license of the image loader for the format.
The returned string should be a shorthand for a well known license, e.g.
"LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license.- Returns:
- a string describing the license of the pixbuf format
-
getName
Returns the name of the format.- Returns:
- the name of the format.
-
isDisabled
public boolean isDisabled()Returns whether this image format is disabled.
See gdk_pixbuf_format_set_disabled().- Returns:
- whether this image format is disabled.
-
isSaveOptionSupported
Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.
See gdk_pixbuf_save() for more information about option keys.- Parameters:
option_key- the name of an option- Returns:
- `TRUE` if the specified option is supported
-
isSaveOptionSupported
Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.
See gdk_pixbuf_save() for more information about option keys.- Parameters:
option_key- the name of an option- Returns:
- `TRUE` if the specified option is supported
-
isScalable
public boolean isScalable()Returns whether this image format is scalable.
If a file is in a scalable format, it is preferable to load it at
the desired size, rather than loading it at the default size and
scaling the resulting pixbuf to the desired size.- Returns:
- whether this image format is scalable.
-
isWritable
public boolean isWritable()Returns whether pixbufs can be saved in the given format.- Returns:
- whether pixbufs can be saved in the given format.
-
setDisabled
public void setDisabled(boolean disabled) Disables or enables an image format.
If a format is disabled, GdkPixbuf won't use the image loader for
this format to load images.
Applications can use this to avoid using image loaders with an
inappropriate license, see gdk_pixbuf_format_get_license().- Parameters:
disabled- `TRUE` to disable the format @format
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-