XSetFillStyle(3)
β¨ NAME β¨
okay so bestie, this is the page for XSetFillStyle and XSetFillRule β the GC convenience routines π
. It lives in the XSetFillStyle(3) manual slot under XLIB FUNCTIONS, and yes, we're getting into fill styles and fill rules. no cap.
π οΈ SYNTAX
int XSetFillStyle(Display *display, GC gc, int fill_style);
int XSetFillRule(Display *display, GC gc, int fill_rule);
Both are int-returning functions, both take a Display *display, a GC gc, and an int for the setting. iconic.
π ARGUMENTS
displayβ specifies the connection to the X server. your server link, basically.fill_ruleβ specifies the fill-rule you want to set for the specifiedGC. You can passEvenOddRuleorWindingRule.fill_styleβ specifies the fill-style you want to set for the specifiedGC. You can passFillSolid,FillTiled,FillStippled, orFillOpaqueStippled.gcβ specifies theGC. that's the whole note, bestie.
π« DESCRIPTION
XSetFillStyle sets the fill-style in the specified GC. That's it, that's the function. It can generate BadAlloc, BadGC, and BadValue errors, so don't act surprised when those show up.
XSetFillRule sets the fill-rule in the specified GC. Also simple, also main character. It can generate BadAlloc, BadGC, and BadValue errors too.
π¨ DIAGNOSTICS
BadAllocβ the server failed to allocate the requested resource or server memory. rude, but okay.BadGCβ a value for aGContextargument does not name a definedGContext. double-check that gc, bestie.BadValueβ some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.
π SEE ALSO
XCreateGC(3)XQueryBestSize(3)XSetArcMode(3)XSetClipOrigin(3)XSetFont(3)XSetLineAttributes(3)XSetState(3)XSetTile(3)Xlib - C Language X Interface
and that's the tea π«Ά. This page is from X Version 11, libX11 1.8.14, and it's the XSetFillStyle(3) page β there's no date line on it, so we're calling it timeless πβ¨π.
π¦ 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