Gdk.ContentSerializer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.ContentSerializer(**kwargs)¶
- Bases:
- Abstract:
No
A
GdkContentSerializer
is used to serialize content for inter-application data transfers.The
GdkContentSerializer
transforms an object that is identified by aGObject.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 [class`Gdk`.ContentDeserializer].
- get_cancellable()[source]¶
- Returns:
the cancellable for the current operation
- Return type:
Gets the cancellable for the current operation.
This is the
GCancellable
that was passed to [func`content_serialize_async`].
- get_gtype()[source]¶
- Returns:
the
GType
for the current operation- Return type:
Gets the
GType
to of the object to serialize.
- get_mime_type()[source]¶
- Returns:
the mime type for the current operation
- Return type:
Gets the mime type to serialize to.
- get_output_stream()[source]¶
- Returns:
the output stream for the current operation
- Return type:
Gets the output stream for the current operation.
This is the stream that was passed to [func`content_serialize_async`].
- get_priority()[source]¶
- Returns:
the I/O priority for the current operation
- Return type:
Gets the I/O priority for the current operation.
This is the priority that was passed to [func`content_serialize_async`].
- get_task_data()[source]¶
-
Gets the data that was associated with the current operation.
See [method`Gdk`.ContentSerializer.set_task_data].
- get_value()[source]¶
- Returns:
the
GValue
for the current operation- Return type:
Gets the
GValue
to read the object to serialize from.
- return_error(error)[source]¶
- Parameters:
error (
GLib.Error
) – aGError
Indicate that the serialization has ended with an error.
This function consumes error.
- set_task_data(data, notify)[source]¶
- Parameters:
data (
object
orNone
) – data to associate with this operationnotify (
GLib.DestroyNotify
) – destroy notify for data
Associate data with the current serialization operation.