set_with_data


Description:

public bool set_with_data (TargetEntry[] targets, ClipboardGetFunc get_func, ClipboardClearFunc clear_func, void* user_data)

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:

this

a Clipboard

targets

array containing information about the available forms for the clipboard data

get_func

function to call to get the actual clipboard data

clear_func

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

n_targets

number of elements in targets

user_data

user data to pass to get_func and clear_func.

Returns:

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