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
XtAppContextargument isNULL, then the alternateXtAddInput()routine is used instead. plot twist π - if the
xpaargument isNULL, then all active XPA access points get added to the loop. everything. the whole squad. π - if
xpais notNULL, 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) π
π¦ where this page comes from
- debian bookworm: libxpa-dev 2.1.20-1 Β· MIT
- debian trixie: libxpa-dev 2.1.20-3 Β· MIT
- ubuntu jammy: libxpa-dev 2.1.20-1 Β· MIT
- ubuntu noble: libxpa-dev 2.1.20-1build1 Β· MIT
- ubuntu questing: libxpa-dev 2.1.20-3
- ubuntu resolute: libxpa-dev 2.1.20-3build1 Β· MIT
- ubuntu stonking: libxpa-dev 2.1.20-3build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms