XMTRANSFERSETPARAMETERS(3)
π XmTransferSetParameters β the toolkit function that sets up ur params for the next XmTransferValue glow-up
okay bestie, welcome to the XmTransferSetParameters page from the library call section, and no this is not a drill, it's giving "set it up before you send it" energy π
β¨ NAME β¨
XmTransferSetParameters β a toolkit function that establishes parameters to be passed by the next call to XmTransferValue
like literally, it's the pre-game. the hype squad. the little note you slip to your widget before the big transfer happens π«Ά
β¨ SYNOPSIS β¨
#include <Xm/Transfer.h>
void XmTransferSetParameters(
XtPointer transfer_id,
XtPointer parm,
int parm_fmt,
unsigned long parm_length,
Atom parm_type);
yes she takes five arguments. yes that's a lot. no we're not scared, we're obsessed actually π
β¨ DESCRIPTION β¨
XmTransferSetParameters establishes a parameter definition. Your application calls XmTransferSetParameters just before calling XmTransferValue, and only if XmTransferValue needs to transfer a value containing a parameter.
so like. the timing matters, bestie. this is not a "whenever" situation. it's a "right before, and only when needed" situation. main character precision only π
Here's the breakdown of every single arg, because we do not skip, we do not summarise, we read the whole menu πΈ
transfer_idβ Specifies a unique indentifier for the data transfer operation. The value must be the same as the value of thetransfer_idmember of theXmDestinationCallbackStructpassed to theXmNdestinationCallbackprocedure.
fr fr, it has to match. same value, sametransfer_idmember, sameXmDestinationCallbackStructsituation. no substitutes π
parmβ Specifies parameters to be passed to the conversion routine (and theXmNconvertCallbackprocedures, if any) of the widget that owns the selection. The type and length of parameters are target-specific. If the target takes no parameters, the value isNULL.
so the widget that owns the selection is the one getting these params, and honestly the type and length are giving "it depends on the target". if the target is a no-params girly, you pass NULL. periodt.
parm_fmtβ Specifies whether the data inparmshould be viewed as a list of 8-bit, 16-bit, or 32-bit quantities. Possible values are0(whenparmisNULL),8,16, and32.
vibe check on the bit width:0,8,16,32. and the0only shows up whenparmisNULL, okurrr?
parm_lengthβ Specifies the number of elements of data inparm, where each element has the number of bits specified byparm_fmt. WhenparmisNULL, the value is0.
count the elements, not the bits. each element isparm_fmtbits wide. and ifparmisNULL? the value is0. that's the rule and we respect it π¦
parm_typeβ Specifies the type ofparm.
just the type. the whole vibe of the param, condensed into an Atom. slay.
β¨ RELATED β¨
the besties in the same group chat π«
and that's the whole page, no cap π this was XmTransferSetParameters(library call), straight from the library call manual section, and we're sending you off with all the love, all the bits, and all the parameters you could ever need π
go callXmTransferSetParametersright beforeXmTransferValueand only if you actually need a parameter. iykyk π β¨
π¦ 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