XMCVTSTRINGTOUNITTYPE(3)
π XmCvtStringToUnitType π
okay bestie, welcome to the <Xm/Xm.h> cinematic universe, because today we're talking about XmCvtStringToUnitType β a library call, a whole function, an icon, and literally the thing that turns your little string into a unit-type value. it's giving translator but make it Motif. π¦
β¨ NAME β¨
XmCvtStringToUnitType β a function that converts a string to a unit-type value. that's it, that's the whole job, and she does it flawlessly. periodt. π
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
void XmCvtStringToUnitType(
XrmValuePtr args,
Cardinal * num_args,
XrmValue * from_val,
XrmValue * to_val);
no cap, that's the whole signature. copy it exactly, don't freestyle it, bestie. π
π DESCRIPTION π
so. XmCvtStringToUnitType converts a string to a unit type. that's the vibe. π«
and if you're sitting there like "wait, what even are the valid unit types??" β no worries, go read the reference pages for XmGadget, XmManager, or XmPrimitive, because that's where the valid unit types get described. iykyk. π
β οΈ obsolete alert, bestie!! using this function as a resource converter is obsolete. it has been replaced by a new resource converter that uses the RepType facility. so likeβ¦ she's iconic but she's retired. show respect, but maybe use the new one. π
now let's do the parameter meet-and-greet, because every single one of them matters:
argsβ specifies a list of additionalXrmValuearguments to the converter, but only if additional context is needed to perform the conversion. for example: the string-to-font converter needs the widget's screen, and the string-to-pixel converter needs the widget's screen and color map. this argument is oftenNULL. lowkey relatable, honestly. π«Άnum_argsβ specifies the number of additionalXrmValuearguments. this argument is often zero. bestie said "i have nothing to add" and honestly? valid. πfrom_valβ specifies the value to convert. the main character of this whole operation. β¨to_valβ specifies the descriptor to use to return the converted value. the glow-up destination. π
π RELATED π
go read them, they're the lore. π§
and that's the whole page, bestie!! this one lives under XmCvtStringToUnitType(library call) β that's the manual name right there, and it's also the lil footer she signs off with, so consider this your official goodbye kiss from the library call herself. π no date, no version, just pure Motif energy. slay, stay converted, and go read your XmGadget, XmManager, and XmPrimitive pages. bye bb!! πβ¨π
π¦ 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