gdk.content_serializer

Module for [ContentSerializer] class

Types 3

A gdk.content_serializer.ContentSerializer is used to serialize content for inter-application data transfers.

The gdk.content_serializer.ContentSerializer transforms an object that is identified by a GType into a serialized form (i.e. a byte stream) that is identified by a mime type.

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

Also see gdk.content_deserializer.ContentDeserializer.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ContentSerializer self() nothrowReturns `this`, for use in `with` statements.
ContentSerializerGidBuilder builder() static nothrowGet builder for [gdk.content_serializer.ContentSerializer] Returns: New builder object
gio.cancellable.Cancellable getCancellable() nothrowGets the cancellable for the current operation.
gobject.types.GType getGtype() nothrowGets the `GType` to of the object to serialize. Returns: the `GType` for the current operation
string getMimeType() nothrowGets the mime type to serialize to. Returns: the mime type for the current operation
gio.output_stream.OutputStream getOutputStream() nothrowGets the output stream for the current operation.
int getPriority() nothrowGets the I/O priority for the current operation.
void * getTaskData() nothrowGets the data that was associated with the current operation.
void * getUserData() nothrowGets the user data that was passed when the serializer was registered. Returns: the user data for this serializer
gobject.value.Value getValue() nothrowGets the [gobject.value.Value] to read the object to serialize from. Returns: the [gobject.value.Value] for the current operation
void returnError(glib.error.ErrorWrap error) nothrowIndicate that the serialization has ended with an error.
void returnSuccess() nothrowIndicate that the serialization has been successfully completed.
void setTaskData(void * data, glib.types.DestroyNotify notify) nothrowAssociate data with the current serialization operation.
Constructors
this(void * ptr, Flag!"Take" take)