XpSelectInput(3Xp)

πŸ’– XpSelectInput πŸ’–

okay bestie, this is XpSelectInput from the 3Xp manual, chilling under XPRINT FUNCTIONS. It's the function that tells X which X Print events from a print context you actually care about. ✨

🌸 NAME 🌸

XpSelectInput β€” Specifies which X Print events, from the specified print context, the client is interested in. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void XpSelectInput ( display, context, event_mask )
      Display *display;
      XPContext context;
      unsigned long event_mask;

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” Specifies a pointer to the Display structure; returned from XOpenDisplay. That's your display hookup, bestie. πŸ’–
  • context β€” Specifies the print context from which to select events.
  • event_mask β€” Specifies the event mask. This mask is the bitwise OR one or more of the valid events mask bits (see below). No cap. ✨

πŸ’« DESCRIPTION πŸ’«

XpSelectInput selects which X Print events from the specified print context the client is interested in. The X Print Events are generated from a current print context, and not from a window as is the case with XSelectInput. That distinction is giving main character energy. πŸ‘‘

πŸ”₯ STRUCTURES πŸ”₯

The bits for event_mask are defined in <X11/extensions/Print.h>:

#define XPNoEventMask         0
#define XPPrintMask           (1L<<0)
#define XPAttributeMask       (1L<<1)

The resulting events are defined in <X11/extensions/Print.h>:

#define XPPrintNotify         0
#define XPAttributeNotify          1

πŸ’€ DIAGNOSTICS πŸ’€

  • BadValue β€” The value specified for event_mask is not valid.
  • XPBadContext β€” The specified print context is not valid.
okay so those are the diagnostics, bestie β€” no mystery bonus errors hiding in here. 🫢

πŸ“ FILES πŸ“

<X11/extensions/Print.h>


That's the whole vibe, bestie. This page comes from X Version 11, libXp 1.0.4, and it's XpSelectInput(3Xp). 🫢✨

πŸ“¦ where this page comes from