ContentDeserializerRef

public struct ContentDeserializerRef : ContentDeserializerProtocol, GWeakCapturing

The ContentDeserializerRef type acts as a lightweight Swift reference to an underlying GdkContentDeserializer instance. It exposes methods that can operate on this data type through ContentDeserializerProtocol conformance. Use ContentDeserializerRef only as an unowned reference to an existing GdkContentDeserializer instance.

A GdkContentDeserializer is used to deserialize 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 [funccontent_register_deserializer].

Also see [classGdk.ContentSerializer].

  • ptr
    Untyped pointer to the underlying `GdkContentDeserializer` instance.
    

    For type-safe access, use the generated, typed pointer content_deserializer_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ContentDeserializer Class