XtDisplay(3)
β¨ XtDisplay β the XT FUNCTIONS glow-up β¨
okay bestie, so you're deep in X Toolkit Intrinsics land and you just need to grab a Display *, a Screen *, or a Window off a widget?? say less π
this page is from the XT FUNCTIONS corner of the manual and it's literally your one-stop shop for "give me the thing behind the thing".
π NAME
XtDisplay, XtDisplayOfObject, XtScreen, XtScreenOfObject, XtWindow, XtWindowOfObject β obtain window information about a widget πͺβ¨
π SYNTAX
#include <X11/Intrinsic.h>
Display *XtDisplay(Widget w);
Display *XtDisplayOfObject(Widget object);
Screen *XtScreen(Widget w);
Screen *XtScreenOfObject(Widget object);
Window XtWindow(Widget w);
Window XtWindowOfObject(Widget object);
π ARGUMENTS
wβ Specifies the widget. (yes she's just a widget, she contains multitudes π«Ά)objectβ Specifies the widget. (same energy, different name, iconic of them fr fr)
π DESCRIPTION
XtDisplayreturns the display pointer for the specified widget. the display!! the main character connection to the X server!! πXtDisplayOfObjectreturns the display pointer for the specified object. same vibe, object edition π¦XtScreenreturns the screen pointer for the specified widget. screen pointer acquired, no cap π₯οΈXtScreenOfObjectreturns the screen pointer for the specified object. screen pointer but make it an object πΈXtWindowreturns the window of the specified widget. the actual window, bestie, the real one πͺXtWindowOfObjectreturns the window of the specified object. window energy, object flavor π
π SEE ALSO
X Toolkit Intrinsics - C Language InterfaceXlib - C Language X Interface
not me ending this with the receipts π: this page is from X Version 11, libXt 1.3.1, and it's the XtDisplay(3) manual page. go get that display pointer, you absolute legend πβ periodt.
π¦ 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