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 appropriateScreenstructure. 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β returnsWhenMapped,NotUseful, orAlways, 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 π¦
AllPlanes(3)ImageByteOrder(3)IsCursorKey(3)Xlib - C Language X Interface
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
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms