Package ch.bailu.gtk.gdk
Class ContentFormatsBuilder
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.ContentFormatsBuilder
- All Implemented Interfaces:
PointerInterface
A `GdkContentFormatsBuilder` is an auxiliary struct used to create
new `GdkContentFormats`, and should not be kept around.
new `GdkContentFormats`, and should not be kept around.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new `GdkContentFormatsBuilder` object.ContentFormatsBuilder(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormats(ContentFormats formats) Appends all formats from @formats to @builder, skipping those that
already exist.voidaddGtype(long type) Appends @type to @builder if it has not already been added.voidaddMimeType(Str mime_type) Appends @mime_type to @builder if it has not already been added.voidaddMimeType(String mime_type) Appends @mime_type to @builder if it has not already been added.Creates a new `GdkContentFormats` from the current state of the
given @builder, and frees the @builder instance.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeref()Acquires a reference on the given @builder.Creates a new `GdkContentFormats` from the given @builder.voidunref()Releases a reference on the given @builder.Methods 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
-
Constructor Details
-
ContentFormatsBuilder
-
ContentFormatsBuilder
public ContentFormatsBuilder()Create a new `GdkContentFormatsBuilder` object.
The resulting builder would create an empty `GdkContentFormats`.
Use addition functions to add types to it.
-
-
Method Details
-
getClassHandler
-
addFormats
Appends all formats from @formats to @builder, skipping those that
already exist.- Parameters:
formats- the formats to add
-
addGtype
public void addGtype(long type) Appends @type to @builder if it has not already been added.- Parameters:
type- a `GType`
-
addMimeType
Appends @mime_type to @builder if it has not already been added.- Parameters:
mime_type- a mime type
-
addMimeType
Appends @mime_type to @builder if it has not already been added.- Parameters:
mime_type- a mime type
-
freeToFormats
Creates a new `GdkContentFormats` from the current state of the
given @builder, and frees the @builder instance.- Returns:
- the newly created `GdkContentFormats` with all the formats added to @builder
-
ref
Acquires a reference on the given @builder.
This function is intended primarily for bindings.
`GdkContentFormatsBuilder` objects should not be kept around.- Returns:
- the given `GdkContentFormatsBuilder` with its reference count increased
-
toFormats
Creates a new `GdkContentFormats` from the given @builder.
The given `GdkContentFormatsBuilder` is reset once this function returns;
you cannot call this function multiple times on the same @builder instance.
This function is intended primarily for bindings. C code should use
[method@Gdk.ContentFormatsBuilder.free_to_formats].- Returns:
- the newly created `GdkContentFormats` with all the formats added to @builder
-
unref
public void unref()Releases a reference on the given @builder. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-