1.8 <GdkContentSerializer>

Class: <GdkContentSerializer>

It derives from <GObject>.

Serializes 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 content-register-serializer.

Also see <GdkContentDeserializer>.

Procedures

Method: content-serializer:get-cancellable self ⇒ %return
Method: get-cancellable self ⇒ %return

Gets the cancellable for the current operation.

This is the <GCancellable> that was passed to content_serialize_async.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a <GCancellable>, or #f.

the cancellable for the current operation

Method: content-serializer:get-gtype self ⇒ %return
Method: get-gtype self ⇒ %return

Gets the GType to of the object to serialize.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a class, or a GType number.

the GType for the current operation

Method: content-serializer:get-mime-type self ⇒ %return
Method: get-mime-type self ⇒ %return

Gets the mime type to serialize to.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a string.

the mime type for the current operation

Method: content-serializer:get-output-stream self ⇒ %return
Method: get-output-stream self ⇒ %return

Gets the output stream for the current operation.

This is the stream that was passed to content_serialize_async.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a <GOutputStream>.

the output stream for the current operation

Method: content-serializer:get-priority self ⇒ %return
Method: get-priority self ⇒ %return

Gets the I/O priority for the current operation.

This is the priority that was passed to content_serialize_async.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a 32-bit integer.

the I/O priority for the current operation

Method: content-serializer:get-task-data self ⇒ %return
Method: get-task-data self ⇒ %return

Gets the data that was associated with the current operation.

See content-serializer:set-task-data.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a foreign pointer, or #f.

the task data for self

Method: content-serializer:get-user-data self ⇒ %return
Method: get-user-data self ⇒ %return

Gets the user data that was passed when the serializer was registered.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a foreign pointer, or #f.

the user data for this serializer

Method: content-serializer:get-value self ⇒ %return
Method: get-value self ⇒ %return

Gets the <GValue> to read the object to serialize from.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

%return

Returned: a <GValue>.

the <GValue> for the current operation

Method: content-serializer:return-error self error
Method: return-error self error

Indicate that the serialization has ended with an error.

This function consumes error.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

error

Passed: a <GError>.

a <GError>

Method: content-serializer:return-success self
Method: return-success self

Indicate that the serialization has been successfully completed.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

Method: content-serializer:set-task-data self data notify
Method: set-task-data self data notify

Associate data with the current serialization operation.

self

Passed: a <GdkContentSerializer>.

a <GdkContentSerializer>

data

Passed: a foreign pointer, or a bytevector, or #f.

data to associate with this operation

notify

Passed: a procedure.

destroy notify for data

See GDestroyNotify for how it is called.