1. NAME

XSetTile, XSetStipple, XSetTSOrigin - GC convenience routines

2. 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);

3. ARGUMENTS

display 1i Specifies the connection to the X server.

gc 1i Specifies the GC.

stipple 1i Specifies the stipple you want to set for the specified GC.

tile 1i Specifies the fill tile you want to set for the specified GC.

ts_x_origin 1i

ts_y_origin 1i Specify the x and y coordinates of the tile and stipple origin.

4. DESCRIPTION

The .ZN XSetTile function sets the fill tile in the specified GC. The tile and GC must have the same depth, or a .ZN BadMatch error results.

.ZN XSetTile can generate .ZN BadAlloc , .ZN BadGC , .ZN BadMatch , and .ZN BadPixmap errors.

The .ZN XSetStipple function sets the stipple in the specified GC. The stipple must have a depth of one, or a .ZN BadMatch error results.

.ZN XSetStipple can generate .ZN BadAlloc , .ZN BadGC , .ZN BadMatch , and .ZN BadPixmap errors.

The .ZN XSetTSOrigin function 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.

.ZN XSetTSOrigin can generate .ZN BadAlloc and .ZN BadGC errors.

5. DIAGNOSTICS

  • .ZN BadAlloc
     The server failed to allocate the requested resource or server memory.
  • .ZN BadGC
     A value for a GContext argument does not name a defined GContext.
  • .ZN 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.
  • .ZN BadPixmap
     A value for a Pixmap argument does not name a defined Pixmap.

6. SEE ALSO