Clipboard.setWithData

Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.

Parameters

targets GtkTargetEntry[]

array containing information about the available forms for the clipboard data. [array length=n_targets]

getFunc GtkClipboardGetFunc

function to call to get the actual clipboard data. [scope async]

clearFunc GtkClipboardClearFunc

when the clipboard contents are set again, this function will be called, and get_func will not be subsequently called. [scope async]

userData void*

user data to pass to get_func and clear_func.

Return Value

Type: int

TRUE if setting the clipboard data succeeded. If setting the clipboard data failed the provided callback functions will be ignored.

Meta