ContentProvider
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 ctor@Gdk.ContentProvider.new_for_value or ctor@Gdk.ContentProvider.new_for_bytes.
GDK knows how to handle common text and image formats out-of-the-box. See class@Gdk.ContentSerializer and class@Gdk.ContentDeserializer if you want to add support for application-specific data formats.
Skipped during bindings generation
method
formats
: Property has no getter nor settermethod
storable-formats
: Property has no getter nor setterconstructor
new_typed
: Varargs parameter is not supportedparameter
providers
: Array parameter of type ContentProvider is not supported
Constructors
Create a content provider that provides the given @bytes as data for the given @mime_type.
Create a content provider that provides the given @value.
Functions
Emitted whenever the content provided by this provider has changed.
Emits the ::content-changed signal.
Gets the formats that the provider can provide its current contents in.
Gets the formats that the provider suggests other applications to store the data in.
Asynchronously writes the contents of @provider to @stream in the given
Finishes an asynchronous write operation.