]>
git.saurik.com Git - wxWidgets.git/blob - interface/clipboard.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 Gets the name of a registered clipboard format, and puts it into the buffer @a
11 formatName which is of maximum
12 length @e maxCount. @a dataFormat must not specify a predefined clipboard
15 bool wxGetClipboardFormatName(int dataFormat
,
16 const wxString
& formatName
,
21 Gets data from the clipboard.
22 @a dataFormat may be one of:
23 wxCF_TEXT or wxCF_OEMTEXT: returns a pointer to new memory containing a
24 null-terminated text string.
25 wxCF_BITMAP: returns a new wxBitmap.
26 The clipboard must have previously been opened for this call to succeed.
28 wxObject
* wxGetClipboardData(int dataFormat
);
31 Returns @true if the given data format is available on the clipboard.
33 bool wxIsClipboardFormatAvailable(int dataFormat
);
36 Opens the clipboard for passing data to it or getting data from it.
38 bool wxOpenClipboard();
41 Empties the clipboard.
43 bool wxEmptyClipboard();
46 Returns @true if this application has already opened the clipboard.
48 bool wxClipboardOpen();
51 Registers the clipboard data format name and returns an identifier.
53 int wxRegisterClipboardFormat(const wxString
& formatName
);
56 Closes the clipboard to allow other applications to use it.
58 bool wxCloseClipboard();
61 Enumerates the formats found in a list of available formats that belong
62 to the clipboard. Each call to this function specifies a known
63 available format; the function returns the format that appears next in
65 @a dataFormat specifies a known format. If this parameter is zero,
66 the function returns the first format in the list.
67 The return value specifies the next known clipboard data format if the
68 function is successful. It is zero if the @a dataFormat parameter specifies
69 the last format in the list of available formats, or if the clipboard
71 Before it enumerates the formats function, an application must open the
72 clipboard by using the
73 wxOpenClipboard function.
75 int wxEnumClipboardFormats(int dataFormat
);