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

πŸ’… XmDirectionMatchPartial β€” like, the NAME section, bestie

Okay so this page is XmDirectionMatchPartial, a library call from the Motif/Xm world, and she's here to do exactly one thing: check one specific direction component of two direction values. That's it. That's the whole job. Iconic, honestly. ✨


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
Boolean XmDirectionMatchPartial (d1, d2, dmask)
        XmDirection     d1;
        XmDirection     d2;
        XmDirection     dmask;
(void)

No cap, that's the whole signature. Three XmDirection args in, one Boolean out. Simple girl, simple life. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: XmDirectionMatchPartial compares d1 and d2 along the direction component that you specify with dmask. Not the whole vibe β€” just the one slice you asked about. For example, if dmask equals XmVERTICAL_MASK, then the function will compare only the vertical components of d1 and d2. That's it, that's the whole point of the "Partial" in the name, periodt. πŸ’–

  • d1 β€” Specifies an XmDirection value to check. (Your first little guy. 🫢)
  • d2 β€” Specifies an XmDirection value to check. (Your second little guy. They're getting compared. It's giving rivals-to-lovers, lowkey. πŸ’œ)
  • dmask β€” Specifies the direction component along which d1 and d2 are to be checked. Appropriate values for dmask are XmHORIZONTAL_MASK, XmVERTICAL_MASK, and XmPRECEDENCE_MASK. Pick your fighter. πŸ‘‘
fr fr, dmask is the whole main character here. You're literally telling the function which axis of the situation you care about. 🌈

✨ RETURN VALUES ✨

  • Returns True if the d1 and d2 match in the component specified by dmask
  • otherwise, returns False

That's it. Binary queen. πŸ’… No shades of grey, no "maybe", just True or False and she moves on with her day. πŸ”₯


Go read these too, they're all in the same friend group:


And that's the whole page, bestie!! πŸŽ€βœ¨ This was XmDirectionMatchPartial(library call) β€” yes, the same name as up top, the manual really said "bookends πŸ’–" β€” go forth and check those direction components, you're doing amazing, slay, bye!! πŸ¦‹πŸ’œ