Clipboard
Object Hierarchy:
Gdk.Clipboard
Gdk.Clipboard
Gdk.Clipboard
GLib.Object
GLib.Object
GLib.Object->Gdk.Clipboard
Description:
[ CCode ( type_id = "gdk_clipboard_get_type ()" ) ]public class Clipboard : Object
Content:
Properties:
public ContentProvider content { get ; }
The `GdkContentProvider` or null if
the clipboard is empty or contents are provided otherwise.
public Display display { get ; construct ; }
The `GdkDisplay` that the clipboard belongs to.
public ContentFormats formats { get ; }
The possible formats that the clipboard can provide its data in.
public bool local { get ; }
true if the contents of the
clipboard are owned by this process.
Creation methods:
Methods:
public void @set (Type type, ...)
Sets the clipboard to contain the value collected from the given
varargs.
public unowned ContentProvider ? get_content ()
Returns the `GdkContentProvider` currently set on
this .
public unowned Display get_display ()
Gets the `GdkDisplay` that the clipboard was created for.
public unowned ContentFormats get_formats ()
Gets the formats that the clipboard can provide its current contents
in.
public bool is_local ()
Returns if the clipboard is local.
public async InputStream ? read_async (string [] mime_types, int io_priority, Cancellable ? cancellable, out unowned string out_mime_type) throws Error
Asynchronously requests an input stream to read the
this 's contents from.
public async string ? read_text_async (Cancellable ? cancellable) throws Error
Asynchronously request the this
contents converted to a string.
public async Texture ? read_texture_async (Cancellable ? cancellable) throws Error
Asynchronously request the this
contents converted to a `GdkPixbuf`.
public async unowned Value ? read_value_async (Type type, int io_priority, Cancellable ? cancellable) throws Error
Asynchronously request the this
contents converted to the given type
.
public bool set_content (ContentProvider ? provider)
Sets a new content provider on this .
public void set_text (string text)
Puts the given text
into the clipboard.
public void set_texture (Texture texture)
Puts the given texture
into the clipboard.
public void set_valist (Type type, va_list args)
Sets the clipboard to contain the value collected from the given
args
.
public void set_value (Value value)
Sets the this to contain the given
value
.
public async bool store_async (int io_priority, Cancellable ? cancellable) throws Error
Asynchronously instructs the this to
store its contents remotely.
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