Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: object
Deserializes content received via inter-application data transfers. The
GdkContentDeserializer 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 [class@Gdk.ContentSerializer].
ContentDeserializer (Handle = null)
Creates a new
ContentDeserializerby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asAsyncResult ()
Wraps this handle as
AsyncResult.
A AsyncResult object.get_cancellable ()
Gets the cancellable for the current operation. This is the
GCancellablethat was passed to [func@Gdk.content_deserialize_async].
the cancellable for the current operation.get_input_stream ()
Gets the input stream for the current operation. This is the stream that was passed to [func@Gdk.content_deserialize_async].
the input stream for the current operation.get_mime_type ()
Gets the mime type to deserialize from.
the mime type for the current operation.get_priority ()
Gets the I/O priority for the current operation. This is the priority that was passed to [func@Gdk.content_deserialize_async].
the I/O priority for the current operation.get_task_data ()
Gets the data that was associated with the current operation. See [method@Gdk.ContentDeserializer.set_task_data].
the task data for @deserializer.get_user_data ()
Gets the user data that was passed when the deserializer was registered.
the user data for this deserializer.get_value ()
Gets the
GValueto store the deserialized object in.
the GValue for the current operation.return_error (object error)
Indicate that the deserialization has ended with an error. This function consumes @error.
error is a GError.None.return_success ()
Indicate that the deserialization has been successfully completed.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.