XDrawPoint() XDrawPoint()
Name
XDrawPoint - draw a point.
Synopsis
XDrawPoint(display, drawable, gc, x, y)
Display *display;
Drawable drawable;
GC gc;
int x, y;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
drawable Specifies the drawable.
gc Specifies the graphics context.
x Specify the x and y coordinates of the point, relative to the origin of the drawable.
y
Description
XDrawPoint() draws a single point into the specified drawable. XDrawPoint() uses these graphics context components: function, plane_mask,
foreground, subwindow_mode, clip_x_origin, clip_y_origin, and clip_mask. Use XDrawPoints() to draw multiple points.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text, and Chapter 5, The Graphics Context.
Errors
BadDrawable
BadGC
BadMatch
See Also
XClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDraw-
Points(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangle(), XFillRectan-
gles().
Xlib - Drawing Primitives XDrawPoint()