Package ch.bailu.gtk.gdkpixbuf
Klasse PixbufFormat
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdkpixbuf.PixbufFormat
- Alle implementierten Schnittstellen:
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.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()
Creates a copy of `format`.void
free()
Frees the resources allocated when copying a `GdkPixbufFormat`
using gdk_pixbuf_format_copy()static ClassHandler
Returns 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 int
Returns information about the license of the image loader for the format.getName()
Returns the name of the format.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Returns whether this image format is disabled.boolean
isSaveOptionSupported
(Str option_key) Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.boolean
isSaveOptionSupported
(String option_key) Returns `TRUE` if the save option specified by @option_key is supported when
saving a pixbuf using the module implementing @format.boolean
Returns whether this image format is scalable.boolean
Returns whether pixbufs can be saved in the given format.void
setDisabled
(boolean disabled) Disables or enables an image format.void
setFieldDescription
(Str description) a description of the image formatvoid
setFieldDomain
(Str domain) the message domain for the `description`void
setFieldName
(Str name) the name of the image formatvoid
setFieldSignature
(PixbufModulePattern signature) the signature of the moduleVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
NAME
the name of the image format- Siehe auch:
-
SIGNATURE
the signature of the module- Siehe auch:
-
DOMAIN
the message domain for the `description`- Siehe auch:
-
DESCRIPTION
a description of the image format- Siehe auch:
-
-
Konstruktordetails
-
PixbufFormat
-
-
Methodendetails
-
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`.- Gibt zurück:
- 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.- Gibt zurück:
- 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.- Gibt zurück:
- a string describing the license of the pixbuf format
-
getName
Returns the name of the format.- Gibt zurück:
- the name of the format.
-
isDisabled
public boolean isDisabled()Returns whether this image format is disabled.
See gdk_pixbuf_format_set_disabled().- Gibt zurück:
- 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.- Parameter:
option_key
- the name of an option- Gibt zurück:
- `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.- Parameter:
option_key
- the name of an option- Gibt zurück:
- `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.- Gibt zurück:
- whether this image format is scalable.
-
isWritable
public boolean isWritable()Returns whether pixbufs can be saved in the given format.- Gibt zurück:
- 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().- Parameter:
disabled
- `TRUE` to disable the format @format
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-