XMCLIPBOARDINQUIREFORMAT(3)
π XmClipboardInquireFormat π
okay bestie, welcome to XmClipboardInquireFormat, a lil library call from the Motif universe that returns a specified format name. yes she's a <library call> and yes she ate. no cap. π
β¨ NAME β¨
XmClipboardInquireFormat β A clipboard function that returns a specified format name π
π¦ SYNOPSIS π¦
#include <Xm/CutPaste.h>
int XmClipboardInquireFormat (display, window, index, format_name_buf,
buffer_len, copied_len)
Display * display;
Window window;
int index;
XtPointer format_name_buf;
unsigned long buffer_len;
unsigned long * copied_len;
(void)
like, that (void) at the bottom is just sitting there serving cunt, don't worry about it π«Ά
πΈ DESCRIPTION πΈ
So XmClipboardInquireFormat hands you a specified format name for the data item chillin' in the clipboard. That's the whole vibe. β¨
And here's the tea: if the name has to be truncated, the function returns a warning status. Not an error, just a lil heads up that the name got chopped. π
Here's the full cast of arguments, bestie:
displayβ Specifies a pointer to theDisplaystructure that was returned in a previous call toXOpenDisplayorXtDisplay. it's the β¨ source of truth β¨ basicallywindowβ 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 moment, fr fr πindexβ Specifies which of the ordered format names to obtain. now if this index is greater than the number of formats for the data item, this function returns a0(zero) in thecopied_lenargument. no format for you, babe πformat_name_bufβ Specifies the buffer that receives the format name. it's the lil basket π§Ί where the name goesbuffer_lenβ Specifies the number of bytes in the format name buffer.copied_lenβ Specifies the number of bytes in the data item copied to the buffer. and if this argument equals0(zero), there is no nth format for the data item. literally zero, so like, nothing there π
π₯ RETURN π₯
these are the statuses she can come back with, and each one is a whole personality:
XmClipboardSuccessβ The function was successful. slay!! she did it, periodt β¨XmClipboardLockedβ The function failed because the clipboard was locked by another application. okay so the good news is 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. it's giving "hold on bestie, someone else is in the bathroom" πͺπXmClipboardTruncateβ The data returned is truncated because the user did not provide a buffer large enough to hold the data. your basket was too small, the name is hanging out the side π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.
like damn, three whole reasons to come up empty. the vibe check failed π₯²
π RELATED π
XmClipboardStartCopy(3)β go read her next, she's iconic π«Ά
lowkey reminder bestie: truncation is a warning, not a fail, and a0incopied_lenmeans there's no nth format. that's the whole plot. iykyk π
and that's the page!! this was XmClipboardInquireFormat(library call) β that's the name up top and down at the bottom, she said it twice bc she's the main character. mwah, love u, go read your man pages πππ¦β¨π
π¦ 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