Clipboard.waitForRichText

Requests the contents of the clipboard as rich text. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. Since 2.10

class Clipboard
ubyte[]
waitForRichText

Parameters

buffer TextBuffer

a GtkTextBuffer

format GdkAtom

return location for the format of the returned data. out

Return Value

Type: ubyte[]

a newly-allocated binary block of data which must be freed with g_free(), or NULL if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into text form.). [array length=length][transfer full]

Meta