XMCLIPBOARDINQUIREPENDINGITEMS(3)
β¨ NAME β¨
XmClipboardInquirePendingItems β a clipboard function that hands you back a whole list of data ID/private ID pairs π
this is from the XmClipboard...endingItems library call page, bestie, and it's lowkey iconic.
π SYNOPSIS π
#include <Xm/CutPaste.h>
int XmClipboardInquirePendingItems (display, window, format_name, item_list, count)
Display * display;
Window window;
char * format_name;
XmClipboardPendingList * item_list;
unsigned long * count;
(void)
π¦ DESCRIPTION π¦
Okay so XmClipboardInquirePendingItems returns a list of data ID/private ID pairs for the format name you asked about. And what even counts as pending, you ask? An item is pending if the application originally passed it by name, the application hasn't copied the data yet, AND the item hasn't been deleted from the clipboard. All three, no cap. π
Heads up: the application is responsible for freeing the memory that this function provides to store the list. To free it, call XtFree. Not optional. Free your memory, bestie, it's self-care. π
This function gets used by an application when it's exiting, to figure out whether the data that was passed by name should be sent to the clipboard.
displayβ Specifies a pointer to theDisplaystructure that was returned in a previous call toXOpenDisplayorXtDisplay. πwindowβ Specifies the window ID of a widget that relates the application window to the clipboard. You can get the widget's window ID throughXtWindow. The same application instance should pass the same window ID to each of the clipboard functions that it calls. Consistency is the vibe, periodt. πformat_nameβ Specifies a string that contains the name of the format for which the list of data ID/private ID pairs is to be obtained. β¨item_listβ Specifies the address of the array of data ID/private ID pairs for the specified format name. This argument is a typeXmClipboardPendingList. The application is responsible for freeing the memory provided by this function for storing the list. (Yes, saying it twice. Because it MATTERS. π)countβ Specifies the number of items returned in the list. If there is no data for the specified format name, or if there is no item on the clipboard, this argument equals 0 (zero). Zero. Zilch. Nothing on the clipboard, nothing in your count. π
π RETURN π
XmClipboardSuccessβ The function was successful. Slay! πXmClipboardLockedβ The function failed because the clipboard was locked by another application. π€ The application can continue to call the function again with the same parameters until the lock goes away. This gives the application the opportunity to ask if the user wants to keep trying or to give up on the operation. So like... you could keep knocking, or you could let it go. Your call, main character. π
πΈ RELATED πΈ
And that's the whole thing, bestie β straight from the XmClipboard...endingItems library call page, XmClipboard...endingItems, library call, no date on it, so I'm not gonna make one up. π«Ά Stay pending, stay free-ing your memory with XtFree, and go be iconic. πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms