BlackPixelOfScreen(3)

πŸ’… BlackPixelOfScreen(3) β€” XLIB FUNCTIONS ✨

okay so bestie, this is the libX11 page for the screen information functions and macros β€” yes, all twenty of them, and no I'm not skipping any, we're getting every single one πŸ˜€πŸ’–

These are your go-to besties for asking a Screen * structure literally anything about itself. it's giving "tell me about yourself" energy fr fr 🌸


✨ SYNTAX ✨

no cap, here's every single signature, copied exactly, go off πŸ‘‘

unsigned long BlackPixelOfScreen(Screen *screen);

unsigned long WhitePixelOfScreen(Screen *screen);

int CellsOfScreen(Screen *screen);

Colormap DefaultColormapOfScreen(Screen *screen);

int DefaultDepthOfScreen(Screen *screen);

GC DefaultGCOfScreen(Screen *screen);

Visual *DefaultVisualOfScreen(Screen *screen);

int DoesBackingStore(Screen *screen);

Bool DoesSaveUnders(Screen *screen);

Display *DisplayOfScreen(Screen *screen);

int XScreenNumberOfScreen(Screen *screen);

long EventMaskOfScreen(Screen *screen);

int HeightOfScreen(Screen *screen);

int HeightMMOfScreen(Screen *screen);

int MaxCmapsOfScreen(Screen *screen);

int MinCmapsOfScreen(Screen *screen);

int PlanesOfScreen(Screen *screen);

Window RootWindowOfScreen(Screen *screen);

int WidthOfScreen(Screen *screen);

int WidthMMOfScreen(Screen *screen);

πŸŽ€ ARGUMENTS πŸŽ€

  • screen β€” specifies the appropriate Screen structure. yeah that's it, that's the whole argument list, she's low-maintenance πŸ’…

🌈 DESCRIPTION 🌈

okay so, one by one, here's what each of these icons actually does 🫢

  • BlackPixelOfScreen β€” returns the black pixel value of the specified screen. πŸ–€
  • WhitePixelOfScreen β€” returns the white pixel value of the specified screen. 🀍
  • CellsOfScreen β€” returns the number of colormap cells in the default colormap of the specified screen. so many little cells, so organized ✨
  • DefaultColormapOfScreen β€” returns the default colormap of the specified screen. the main character colormap, literally πŸ‘‘
  • DefaultDepthOfScreen β€” returns the default depth of the root window of the specified screen. depth check πŸ•³οΈ
  • DefaultGCOfScreen β€” returns the default GC of the specified screen, which has the same depth as the root window of the screen. noted, bestie, same depth and everything πŸ’œ
  • DefaultVisualOfScreen β€” returns the default visual of the specified screen. the visual, the aesthetic, the vibe check 🌸
  • DoesBackingStore β€” returns WhenMapped, NotUseful, or Always, which indicate whether the screen supports backing stores. three possible answers, no in-between πŸŽ€
  • DoesSaveUnders β€” returns a Boolean value indicating whether the screen supports save unders. yes/no, simple as 😌
  • DisplayOfScreen β€” returns the display of the specified screen. the whole display, handing it right back to you πŸ–₯️✨
  • XScreenNumberOfScreen β€” this one's a function, not a macro bestie, careful β€” returns the screen index number of the specified screen. it's the index number, the digits, the position πŸ”’
  • EventMaskOfScreen β€” returns the root event mask of the root window for the specified screen at connection setup. at connection setup specifically, iykyk πŸ‘€
  • HeightOfScreen β€” returns the height of the specified screen. πŸ“
  • HeightMMOfScreen β€” returns the height of the specified screen in millimeters. metric girlies rise πŸ™Œ
  • MaxCmapsOfScreen β€” returns the maximum number of installed colormaps supported by the specified screen. the ceiling 🧚
  • MinCmapsOfScreen β€” returns the minimum number of installed colormaps supported by the specified screen. the floor πŸ“
  • PlanesOfScreen β€” returns the number of planes in the root window of the specified screen. planes! like little layers πŸ¦‹
  • RootWindowOfScreen β€” returns the root window of the specified screen. the root, the origin, the mother of all windows πŸ‘‘
  • WidthOfScreen β€” returns the width of the specified screen. πŸ“
  • WidthMMOfScreen β€” returns the width of the specified screen in millimeters. metric again, slay πŸ’…

πŸ’€ real talk: XScreenNumberOfScreen is a function while basically all her sisters here are macros β€” the page says so right there in the description, so don't come for me, I'm just the messenger 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page bestie, ate and left no crumbs πŸ“βœ¨

X Version 11 🌈 libX11 1.8.14 πŸ’œ β€” mwah, bye, go query some screens πŸ’…πŸŽ€

πŸ“¦ where this page comes from