XSetArcMode(3)

✨ XSetArcMode(3) ✨

🌸 NAME 🌸

okay bestie, this is the XLIB FUNCTIONS page for XSetArcMode, XSetSubwindowMode, and XSetGraphicsExposure β€” the GC convenience routines πŸŽ€

and yes, the NAME entry says XSetGraphicsExposure (singular) while the actual function below is XSetGraphicsExposures (plural). that’s the manual’s exact spelling, we do not edit the lore πŸ’…

πŸ¦‹ SYNTAX πŸ¦‹

int XSetArcMode(Display *display, GC gc, int arc_mode);

int XSetSubwindowMode(Display *display, GC gc, int subwindow_mode);

int XSetGraphicsExposures(Display *display, GC gc, Bool
       graphics_exposures);

πŸŽ€ ARGUMENTS πŸŽ€

  • arc_mode β€” the arc mode. you can pass ArcChord or ArcPieSlice ✨
  • display β€” the connection to the X server.
  • gc β€” the GC.
  • graphics_exposures β€” a Boolean value that says whether you want GraphicsExpose and NoExpose events reported when calling XCopyArea and XCopyPlane with this GC πŸ‘€
  • subwindow_mode β€” the subwindow mode. you can pass ClipByChildren or IncludeInferiors πŸ’…

πŸ’– DESCRIPTION πŸ’–

XSetArcMode sets the arc mode in the specified GC. it can generate BadAlloc, BadGC, and BadValue errors 🫢

XSetSubwindowMode sets the subwindow mode in the specified GC. it can generate BadAlloc, BadGC, and BadValue errors too 🌈

XSetGraphicsExposures sets the graphics-exposures flag in the specified GC. and yeah, it can generate BadAlloc, BadGC, and BadValue errors as well πŸ’€

πŸ”₯ 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 πŸ’€
  • 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 🧚


bye bestie 🫢 this footer is brought to you by X Version 11 and libX11 1.8.14 β€” there’s no date on this footer, just XSetArcMode(3) energy πŸ’‹

πŸ“¦ where this page comes from