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

  • XtDisplay returns the display pointer for the specified widget. the display!! the main character connection to the X server!! πŸ‘‘
  • XtDisplayOfObject returns the display pointer for the specified object. same vibe, object edition πŸ¦‹
  • XtScreen returns the screen pointer for the specified widget. screen pointer acquired, no cap πŸ–₯️
  • XtScreenOfObject returns the screen pointer for the specified object. screen pointer but make it an object 🌸
  • XtWindow returns the window of the specified widget. the actual window, bestie, the real one πŸͺŸ
  • XtWindowOfObject returns the window of the specified object. window energy, object flavor πŸ’œ

πŸ‘€ SEE ALSO

  • X Toolkit Intrinsics - C Language Interface
  • Xlib - 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