gdk.content_deserializer

Module for [ContentDeserializer] class

Types 3

A [gdk.content_deserializer.ContentDeserializer] is used to deserialize content received via inter-application data transfers.

The [gdk.content_deserializer.ContentDeserializer] transforms serialized content that is identified by a mime type into an object identified by a GType.

GTK provides serializers and deserializers for common data types such as text, colors, images or file lists. To register your own deserialization functions, use func@content_register_deserializer.

Also see [gdk.content_serializer.ContentSerializer].

Methods
GType _gType() @property
ContentDeserializer self()Returns `this`, for use in `with` statements.
ContentDeserializerGidBuilder builder()Get builder for [gdk.content_deserializer.ContentDeserializer] Returns: New builder object
gio.cancellable.Cancellable getCancellable()Gets the cancellable for the current operation.
gobject.types.GType getGtype()Gets the `GType` to create an instance of. Returns: the `GType` for the current operation
gio.input_stream.InputStream getInputStream()Gets the input stream for the current operation.
string getMimeType()Gets the mime type to deserialize from. Returns: the mime type for the current operation
int getPriority()Gets the I/O priority for the current operation.
void * getTaskData()Gets the data that was associated with the current operation.
void * getUserData()Gets the user data that was passed when the deserializer was registered. Returns: the user data for this deserializer
gobject.value.Value getValue()Gets the [gobject.value.Value] to store the deserialized object in. Returns: the [gobject.value.Value] for the current operation
void returnError(glib.error.ErrorWrap error)Indicate that the deserialization has ended with an error.
void returnSuccess()Indicate that the deserialization has been successfully completed.
void setTaskData(void * data, glib.types.DestroyNotify notify)Associate data with the current deserialization operation.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gdk.content_deserializer.ContentDeserializer]