xpaxt(7)

✨ xpaxt ✨ β€” the XPA Interface to Xt (X Windows) πŸ’–

okay bestie, so this is the xpaxt(7) page from the SAORD Documentation set, and it's literally the glow-up guide for making XPA and X Toolkit ✨coexist✨. no cap.


🌸 SYNOPSIS 🌸

it describes how XPA access points can be added to X Toolkit (Xt) programs. that's it. that's the vibe. πŸ¦‹


πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea, bestie: XPA supports Xt programs. you can call XPANew(), XPACmdNew(), or XPAInfoNew() inside any C routine and boom πŸ’₯ β€” you've added XPA server callbacks to an Xt program. iconic behavior honestly.

the thing is, an Xt program already has its own event loop call, aka XtAppMainLoop(). so it does not need or want to use the XPA event loop. it's giving "i already have a main character, thanks." πŸ’…

so, to add XPA access points to the standard Xt event loop, you call this routine before entering the loop:

int XPAXtAddInput(XtAppContext app, XPA xpa)

and what does it do? the XPAAddAddInput() routine adds XPA access points to the Xt event loop by making calls to the standard XtAppAddInput() routine. slay.

some little deets you do NOT wanna skip:

  • if the XtAppContext argument is NULL, then the alternate XtAddInput() routine is used instead. plot twist 🌈
  • if the xpa argument is NULL, then all active XPA access points get added to the loop. everything. the whole squad. πŸ‘‘
  • if xpa is not NULL, then only the specified access point is added. just the one, your fave. πŸ’–

that last type of call is the one you use to add new access points from within a callback, after the program has already entered the XtAppMainLoop() even loop. yes, you can add more friends to the party after it's started. obsessed. 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

  • See xpa(n) for a list of XPA help pages ✨

and that's the whole page, bestie!! πŸ’– stay hydrated, read your man pages, and remember: the Xt event loop is doing its best and so are you 🧚

signing off with much love from the SAORD Documentation crew β€” this was version 2.1.15, dated July 23, 2013 🌸 (yes the vintage is part of the charm, it ate fr fr) πŸ’