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 specified GC. You can pass EvenOddRule or WindingRule.
  • fill_style β€” specifies the fill-style you want to set for the specified GC. You can pass FillSolid, FillTiled, FillStippled, or FillOpaqueStippled.
  • gc β€” specifies the GC. 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 a GContext argument does not name a defined GContext. 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


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