| XmClipboardRegisterFormat(3) | Library Functions Manual | XmClipboardRegisterFormat(3) |
XmClipboardRegisterFormat — A clipboard function that registers a new format "XmClipboardRegisterFormat" "clipboard functions" "XmClipboardRegisterFormat"
#include <Xm/CutPaste.h> int XmClipboardRegisterFormat (display, format_name, format_length)
Display * display;
char * format_name;
int format_length; (void)
XmClipboardRegisterFormat registers a new format. Each format stored on the clipboard should have a length associated with it; this length must be known to the clipboard routines. Formats are known as targets in the Inter-Client Communication Conventions Manual (ICCCM). All of the formats specified by version 1.1 of the ICCCM conventions are preregistered. Any other format that the application wants to use must either be 8-bit data or be registered via this routine. Failure to register the length of the data results in incompatible applications across platforms having different byte-swapping orders.