int err = SetClipboard(struct hwClipboardData *data, struct hwTagList *t);
data.
The data argument will be set to a pointer to a struct hwClipboardData
which looks like this:
struct hwClipboardData
{
int Type;
APTR Data;
};
|
The structure members will be initialized as follows:
TypeData member of the
structure. This will be one of the following values:
HWCLIPBOARDTYPE_TEXT HWCLIPBOARDTYPE_IMAGE |
See below how the actual data is passed for each of those types.
DataData depends on the data type
that was passed in the Type structure member. The following data types
are currently supported:
HWCLIPBOARDTYPE_TEXTData member contains a NULL-terminated string that should be
copied to the clipboard.
HWCLIPBOARDTYPE_IMAGEData member contains a pointer to a struct hwClipboardImage
which looks like this:
struct hwClipboardImage
{
ULONG *Data;
int Width;
int Height;
ULONG Flags;
};
|
This structure will contain the pixel data of the image that should be copied to the clipboard. The structure members will be initialized as follows:
Data
Width
Height
Flags
NULL currently