XMCVTSTRINGTOUNITTYPE(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 additional XrmValue arguments 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 often NULL. lowkey relatable, honestly. 🫢
  • num_args β€” specifies the number of additional XrmValue arguments. 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. 🌈

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!! πŸŽ€βœ¨πŸ’–