ContentSerializer
Object Hierarchy:
Gdk.ContentSerializer
Gdk.ContentSerializer
Gdk.ContentSerializer
GLib.Object
GLib.Object
GLib.Object->Gdk.ContentSerializer
GLib.AsyncResult
GLib.AsyncResult
GLib.AsyncResult->Gdk.ContentSerializer
Description:
[ CCode ( type_id = "gdk_content_serializer_get_type ()" ) ]public class ContentSerializer : Object , AsyncResult
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 [[email protected] _register_serializer].
Also see [[email protected] ].
Content:
Creation methods:
Methods:
public unowned Cancellable ? get_cancellable ()
Gets the cancellable for the current operation.
public Type get_gtype ()
Gets the `GType` to of the object to serialize.
public unowned string get_mime_type ()
Gets the mime type to serialize to.
public unowned OutputStream get_output_stream ()
Gets the output stream for the current operation.
public int get_priority ()
Gets the I/O priority for the current operation.
public void * get_task_data ()
Gets the data that was associated with the current operation.
public unowned Value ? get_value ()
Gets the `GValue` to read the object to serialize from.
public void return_error (owned Error error)
Indicate that the serialization has ended with an error.
public void return_success ()
Indicate that the serialization has been successfully completed.
public void set_task_data (void * data, DestroyNotify notify)
Associate data with the current serialization operation.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.AsyncResult
get_source_object
get_user_data