XMREPTYPEVALIDVALUE(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

✨ NAME ✨

XmRepTypeValidValue is a library call β€” a representation type manager function that tests the validity of a numerical value of a representation type resource. Bestie, it's giving validation gatekeeper energy. πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/RepType.h>
Boolean XmRepTypeValidValue(
XmRepTypeId rep_type_id,
unsigned char test_value,
Widget enable_default_warning);

πŸ’… DESCRIPTION πŸ’…

okay so XmRepTypeValidValue tests the validity of a numerical value for a given representation type resource. The function generates a default warning message if the value is invalid and the enable_default_warning argument is non-NULL. That's the whole plot. 🫢

  • rep_type_id β€” specifies the identification number of the representation type. Like, the ID card for the rep type, no cap. πŸŽ€
  • test_value β€” specifies the numerical value to test. This is the number you're putting through the vibe check. πŸ”₯
  • enable_default_warning β€” specifies the ID of the widget that contains a default warning message. If this parameter is NULL, no default warning message is generated and the application must provide its own error handling. So if you pass NULL, you're DIY-ing your errors, bestie. 😭
lowkey important: NULL means no default warning and you handle your own errors. Don't come crying to the function later. πŸ’€

🌈 RETURN 🌈

Returns True if the specified value is valid; otherwise, returns False. So it's a slay or nay, no in-between. πŸ’…

And that's the whole manual, bestie. Sign-off from the footer: XmRepTypeValidValue(library call) β€” that's the source/version/date tea we got, and it's giving library call, periodt. πŸ’–βœ¨