XtGetApplicationNameAndClass(3)
π NAME π
XtGetApplicationNameAndClass β bestie, this is the one that retrieves your application name and class π
This page lives in the XT FUNCTIONS corner of the manual, and the whole thing is called XtGetApplicationNameAndClass(3). Okay so let's get into it β¨
β¨ SYNTAX β¨
#include <X11/Intrinsic.h>
void XtGetApplicationNameAndClass(Display* display, String* name_return,
String* class_return);
π«Ά ARGUMENTS π«Ά
displayβ an open display connection that's already been initialized withXtDisplayInitialize. Like, it has to be that kind of display, not just any rando display you grabbed off the street, okay?name_returnβ this is where the application name comes back to you πclass_returnβ and this one hands you back the application class π¦
πΈ DESCRIPTION πΈ
So XtGetApplicationNameAndClass literally returns the application name and the application class that were passed to XtDisplayInitialize, for the specific display you hand it. That's it. That's the whole vibe π
β οΈ But bestie, listen β if the display was never initialized, or it's been closed? The result is undefined. Not "kinda weird", not "a little off" β undefined. Don't do it. π
And the strings it gives you back? Those are owned by the Intrinsics. They are not yours. You must not modify them and you must not free them. Do not touch. Hands off. The Intrinsics are the main character here and those strings are their property, periodt π
π SEE ALSO π
XtDisplayInitialize(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
And that's the whole page, bestie π₯° this came from X Version 11, libXt 1.3.1, and it's filed under XtGetApplicationNameAndClass(3) β go forth and get those names and classes, you absolute icon πππ
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms