ContentProvider
Object Hierarchy:
Gdk.ContentProvider
Gdk.ContentProvider
Gdk.ContentProvider
GLib.Object
GLib.Object
GLib.Object->Gdk.ContentProvider
Description:
[ CCode ( type_id = "gdk_content_provider_get_type ()" ) ]public class ContentProvider : Object
A `GdkContentProvider` is used to provide content for the clipboard or for drag-and-drop operations in a number of formats.
To create a `GdkContentProvider`, use [[email protected] _for_value] or [[email protected] _for_bytes].
GDK knows how to handle common text and image formats out-of-the-box. See [[email protected] ] and [
[email protected] ] if you want to add support for application-specific data formats.
Content:
Properties:
Creation methods:
Methods:
public virtual void attach_clipboard (Clipboard clipboard)
public virtual void detach_clipboard (Clipboard clipboard)
public virtual bool get_value (ref Value value) throws Error
Gets the contents of this stored in
value
.
public virtual ContentFormats ref_formats ()
Gets the formats that the provider can provide its current contents
in.
public virtual ContentFormats ref_storable_formats ()
Gets the formats that the provider suggests other applications to
store the data in.
public virtual async bool write_mime_type_async (string mime_type, OutputStream stream, int io_priority, Cancellable ? cancellable) throws Error
Asynchronously writes the contents of this
to stream
in the given mime_type
.
Signals:
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