xpaxt(n)
π NAME π
XPAXt β the XPA Interface to Xt (X Windows) πͺβ¨
πΈ SYNOPSIS πΈ
Okay so bestie, this page describes how XPA access points can be added to X Toolkit (Xt) programs. That's the whole vibe. π
π¦ DESCRIPTION π¦
XPA is literally so supportive of Xt programs, no cap: you can call XPANew(), XPACmdNew(), or XPAInfoNew() inside any C routine to add XPA server callbacks to an Xt program. π«Ά
But here's the thing, bestie β an Xt program already has its own event loop call (i.e., XtAppMainLoop()), so it does not need or want to use the XPA event loop. Not even a little. She's booked and busy. π
ββοΈ
So, in order to add XPA access points to the standard Xt event loop, you should call the following routine before entering the loop:
int XPAXtAddInput(XtAppContext app, XPA xpa)
The XPAAddAddInput() routine will add XPA access points to the Xt event loop by making calls to the standard XtAppAddInput() routine. β¨
- If the
XtAppContextargument isNULL, then the alternateXtAddInput()routine is used instead. π - If the
xpaargument isNULL, then all active XPA access points are added to the loop. π - If
xpais notNULL, then only the specified access point is added. π―
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. Like, mid-party, new guest arrives, and you're just letting them in. πͺπ
ngl, if you're writing Xt code, this is the move. Set it up before the loop and you're golden. π
π₯ SEE ALSO π₯
See xpa(n) for a list of XPA help pages ππ
version 2.1.15 Β· July 23, 2013 Β· SAORD Documentation
That's the whole page, bestie β version 2.1.15, dated July 23, 2013, straight from SAORD Documentation. Read it, love it, ship it. π β¨π¦π
π¦ where this page comes from
- fedora 43: xpa-devel 2.1.20-9.fc43 Β· MIT
- fedora 43: xpa-devel 2.1.20-9.fc43 Β· MIT
- fedora 44: xpa-devel 2.1.20-10.fc44 Β· MIT
- fedora 44: xpa-devel 2.1.20-10.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms