XMCLIPBOARDINQUIRECOUNT(3)
β¨ XmClipboardInquireCount π
okay so bestie, welcome to the XmClipboardInquireCount page from the library call manual, and no cap this one is a lil cutie. she's a clipboard function, she counts things, she tells you how long the format names are. that's it. that's the whole vibe. π
πΈ NAME πΈ
XmClipboardInquireCount β a clipboard function that returns the number of data item formats. literally that's her whole job bestie, she counts. π
π¦ SYNOPSIS π¦
#include <Xm/CutPaste.h>
int XmClipboardInquireCount (display, window, count,
max_format_name_length)
Display * display;
Window window;
int * count;
unsigned long * max_format_name_length;
(void)
like look at her. four args. so clean. so demure. π
π DESCRIPTION π
okay so XmClipboardInquireCount returns the number of data item formats available for the data item in the clipboard. and she's not done β she also returns the maximum name-length for all formats in which the data item is stored. multitasking queen. π
displayβ Specifies a pointer to theDisplaystructure that was returned in a previous call toXOpenDisplayorXtDisplay. yes bestie you already have this, you got it earlier, just pass it in. π«Ά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. and listen β the same application instance should pass the same window ID to each of the clipboard functions that it calls. consistency is the vibe check here, fr fr. π¦countβ Returns the number of data item formats available for the data item in the clipboard. if no formats are available, this argument equals0(zero). and yes, the count includes the formats that were passed by name. inclusive queen. πmax_format_name_lengthβ Specifies the maximum length of all format names for the data item in the clipboard. so you know how much room to give those names. iconic of her honestly. β¨
π RETURN π
XmClipboardSuccessβ The function was successful. slay!! we love a happy ending. πXmClipboardLockedβ The function failed because the clipboard was locked by another application. π not the other app hogging it. but it's fine bestie, 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, your app gets to be the one to check in with the user. main character energy honestly. πXmClipboardNoDataβ The function could not find data on the clipboard corresponding to the format requested. This could occur because the clipboard is empty; there is data on the clipboard, but not in the requested format; or the data in the requested format was passed by name and is no longer available. three whole reasons, all of them valid, all of them tragic. π
lowkey a warning for the girlies:XmClipboardLockedandXmClipboardNoDataare real possibilities, so handle them, don't just pretend they won't happen. no cap.
π§ RELATED π§
iykyk, go read that one next bestie. π
and that's the whole page!! π this was XmClipboardInquireCount(library call) β the source is the library call manual, and yeah, the footer is literally just the title again so I'm folding it into this lil sign-off instead. byeeee, go count some formats, you absolute queen. ππβ¨
π¦ 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