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 a GContext argument does not name a defined GContext.
  • 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 a Pixmap argument does not name a defined Pixmap.

🌈 SEE ALSO 🌈


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