Class: Gdk::ContentSerializer
- Inherits:
-
Object
- Object
- Gdk::ContentSerializer
- Defined in:
- (unknown)
Overview
A GdkContentSerializer is used to serialize content for
inter-application data transfers.
The GdkContentSerializer 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 [funcGdk.content_register_serializer].
Also see [classGdk.ContentDeserializer].
Instance Method Summary collapse
-
#cancellable ⇒ Gio::Cancellable
Gets the cancellable for the current operation.
-
#gtype ⇒ GLib::Type
Gets the
GTypeto of the object to serialize. -
#mime_type ⇒ String
Gets the mime type to serialize to.
-
#output_stream ⇒ Gio::OutputStream
Gets the output stream for the current operation.
-
#priority ⇒ Integer
Gets the I/O priority for the current operation.
-
#return_error(error) ⇒ nil
Indicate that the serialization has ended with an error.
-
#return_success ⇒ nil
Indicate that the serialization has been successfully completed.
-
#set_task_data(data, notify) ⇒ nil
Associate data with the current serialization operation.
-
#task_data ⇒ GObject
Gets the data that was associated with the current operation.
-
#user_data ⇒ GObject
Gets the user data that was passed when the serializer was registered.
-
#value ⇒ GObject::Value
Gets the
GValueto read the object to serialize from.
Instance Method Details
#cancellable ⇒ Gio::Cancellable
Gets the cancellable for the current operation.
This is the GCancellable that was passed to [funccontent_serialize_async].
#gtype ⇒ GLib::Type
Gets the GType to of the object to serialize.
#mime_type ⇒ String
Gets the mime type to serialize to.
#output_stream ⇒ Gio::OutputStream
Gets the output stream for the current operation.
This is the stream that was passed to [funccontent_serialize_async].
#priority ⇒ Integer
Gets the I/O priority for the current operation.
This is the priority that was passed to [funccontent_serialize_async].
#return_error(error) ⇒ nil
Indicate that the serialization has ended with an error.
This function consumes error.
#return_success ⇒ nil
Indicate that the serialization has been successfully completed.
#set_task_data(data, notify) ⇒ nil
Associate data with the current serialization operation.
#task_data ⇒ GObject
Gets the data that was associated with the current operation.
See [methodGdk.ContentSerializer.set_task_data].
#user_data ⇒ GObject
Gets the user data that was passed when the serializer was registered.
#value ⇒ GObject::Value
Gets the GValue to read the object to serialize from.