XSetTile(3)
π XSetTile(3) β XLIB FUNCTIONS π
okay bestie, welcome to the XLIB FUNCTIONS page for XSetTile(3) β these are the GC convenience routines, and they are lowkey here to help you set your graphics context up correctly. no cap, every function, argument, error, and reference is staying right here π«Άβ¨
πΈ NAME πΈ
XSetTile, XSetStipple, XSetTSOrigin β GC convenience routines π
β¨ SYNTAX β¨
int XSetTile(Display *display, GC gc, Pixmap tile);
int XSetStipple(Display *display, GC gc, Pixmap stipple);
int XSetTSOrigin(Display *display, GC gc, int ts_x_origin, int
ts_y_origin);
π ARGUMENTS π
displayβ specifies the connection to the X server; thatβs your link to the server, bestie πgcβ specifies the GC.stippleβ specifies the stipple you want to set for the specified GC π¨tileβ specifies the fill tile you want to set for the specified GC π§©ts_x_origin,ts_y_originβ specify the x and y coordinates of the tile and stipple origin π
π¦ DESCRIPTION π¦
okay so XSetTile sets the fill tile in the specified GC. The tile and GC must have the same depth, or a BadMatch error results. no vibe mismatch allowed, fr fr.
XSetTile can generate BadAlloc, BadGC, BadMatch, and BadPixmap errors.
XSetStipple sets the stipple in the specified GC. The stipple must have a depth of one, or a BadMatch error results. thatβs the rule, periodt.
XSetStipple can generate BadAlloc, BadGC, BadMatch, and BadPixmap errors.
XSetTSOrigin sets the tile/stipple origin in the specified GC. When graphics requests call for tiling or stippling, the parent's origin will be interpreted relative to whatever destination drawable is specified in the graphics request. itβs giving coordinate main character energy π―
XSetTSOrigin can generate BadAlloc and BadGC errors.
π DIAGNOSTICS π
BadAllocβ The server failed to allocate the requested resource or server memory πBadGCβ A value for aGContextargument does not name a definedGContext.BadMatchβ Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request.BadPixmapβ A value for aPixmapargument does not name a definedPixmap.
π SEE ALSO π
XCreateGC(3)XQueryBestSize(3)XSetArcMode(3)XSetClipOrigin(3)XSetFillStyle(3)XSetFont(3)XSetLineAttributes(3)XSetState(3)Xlib - C Language X Interface
xoxo, your GC bestie β X Version 11 / libX11 1.8.14 π thatβs the footer source/version flex, and no date was printed on this page, so Iβm not inventing one π«Άβ¨
π¦ 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