XmClipboardRetrieve
A clipboard function that retrieves a data item from the clipboard "XmClipboardRetrieve" "clipboard functions" "XmClipboardRetrieve"
- Provided by: libmotif-dev (Version: 2.3.4-10)
- Source: motif
- Report a bug
A clipboard function that retrieves a data item from the clipboard "XmClipboardRetrieve" "clipboard functions" "XmClipboardRetrieve"
#include <Xm/CutPaste.h>
int XmClipboardRetrieve (display, window, format_name,
buffer, length, num_bytes, private_id)
Display * display;
Window window;
char * format_name;
XtPointer buffer;
unsigned long length;
unsigned long * num_bytes;
long * private_id;
(void)
XmClipboardRetrieve retrieves the current data item from clipboard storage. It returns a warning if the clipboard is locked, if there is no data on the clipboard, or if the data needs to be truncated because the buffer length is too short.
Between a call to XmClipboardStartRetrieve and a call to XmClipboardEndRetrieve, multiple calls to XmClipboardRetrieve with the same format name result in data being incrementally copied from the clipboard until the data in that format has all been copied.
The return value XmClipboardTruncate from calls to XmClipboardRetrieve indicates that more data remains to be copied in the given format. It is recommended that any calls to the Inquire functions that the application needs to make to effect the copy from the clipboard be made between the call to XmClipboardStartRetrieve and the first call to XmClipboardRetrieve. This way, the application does not need to call XmClipboardLock and XmClipboardUnlock.
XmClipboardEndRetrieve(3), XmClipboardLock(3), XmClipboardStartCopy(3), XmClipboardStartRetrieve(3), and XmClipboardUnlock(3).