Class
WPEPlatformClipboard
Description [src]
class WPEPlatform.Clipboard : GObject.Object
{
WPEClipboardPrivate* priv
}
A clipboard for copy and paste.
WPEClipboard is an abstract class that gives access to the platform’s
clipboard. Get the clipboard of a display with wpe_display_get_clipboard().
Clipboard contents are represented by WPEClipboardContent, which can hold
text and arbitrary data identified by MIME type. Set the contents with
wpe_clipboard_set_content() and read them with
wpe_clipboard_read_text() or wpe_clipboard_read_bytes().
Constructors
wpe_clipboard_new
Create a new WPEClipboard for display. The clipboard created is always local, so its
contents are not shared with other applications.
Instance methods
wpe_clipboard_get_content
Get the WPEClipboardContent previously set with wpe_clipboard_set_content().
This function returns NULL if clipboard is empty or its contents are owned
by the system clipboard.
wpe_clipboard_set_content
Set content on clipboard. Passing a NULL content will clear the clipboard.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WPEPlatformClipboardClass {
GObjectClass parent_class;
GBytes* (* read) (
WPEClipboard* clipboard,
const char* format
);
void (* changed) (
WPEClipboard* clipboard,
GPtrArray* formats,
gboolean is_local,
WPEClipboardContent* content
);
gpointer padding;
}
No description available.
Class members
parent_class: GObjectClassNo description available.
read: GBytes* (* read) ( WPEClipboard* clipboard, const char* format )No description available.
changed: void (* changed) ( WPEClipboard* clipboard, GPtrArray* formats, gboolean is_local, WPEClipboardContent* content )No description available.
padding: gpointerNo description available.