home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XDrawPoint(3X11) XLIB FUNCTIONS XDrawPoint(3X11)
-
-
- NNAAMMEE
- XDrawPoint, XDrawPoints, XPoint - draw points and points
- structure
-
- SSYYNNTTAAXX
- XDrawPoint(_d_i_s_p_l_a_y, _d, _g_c, _x, _y)
- Display *_d_i_s_p_l_a_y;
- Drawable _d;
- GC _g_c;
- int _x, _y;
-
- XDrawPoints(_d_i_s_p_l_a_y, _d, _g_c, _p_o_i_n_t_s, _n_p_o_i_n_t_s, _m_o_d_e)
- Display *_d_i_s_p_l_a_y;
- Drawable _d;
- GC _g_c;
- XPoint *_p_o_i_n_t_s;
- int _n_p_o_i_n_t_s;
- int _m_o_d_e;
-
- AARRGGUUMMEENNTTSS
- _d Specifies the drawable.
-
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _g_c Specifies the GC.
-
- _m_o_d_e Specifies the coordinate mode. You can pass
- _C_o_o_r_d_M_o_d_e_O_r_i_g_i_n or _C_o_o_r_d_M_o_d_e_P_r_e_v_i_o_u_s.
-
- _n_p_o_i_n_t_s Specifies the number of points in the array.
-
- _p_o_i_n_t_s Specifies an array of points.
-
- _x
- _y Specify the x and y coordinates where you want
- the point drawn.
-
- DDEESSCCRRIIPPTTIIOONN
- The _X_D_r_a_w_P_o_i_n_t function uses the foreground pixel and
- function components of the GC to draw a single point into
- the specified drawable; _X_D_r_a_w_P_o_i_n_t_s draws multiple points
- this way. _C_o_o_r_d_M_o_d_e_O_r_i_g_i_n treats all coordinates as rela-
- tive to the origin, and _C_o_o_r_d_M_o_d_e_P_r_e_v_i_o_u_s treats all coor-
- dinates after the first as relative to the previous point.
- _X_D_r_a_w_P_o_i_n_t_s draws the points in the order listed in the
- array.
-
- Both functions use these GC components: function, plane-
- mask, foreground, subwindow-mode, clip-x-origin, clip-y-
- origin, and clip-mask.
-
- _X_D_r_a_w_P_o_i_n_t can generate _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C, and _B_a_d_M_a_t_c_h
- errors. _X_D_r_a_w_P_o_i_n_t_s can generate _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C,
- _B_a_d_M_a_t_c_h, and _B_a_d_V_a_l_u_e errors.
-
-
-
- X Version 11 Release 6.1 1
-
-
-
-
-
- XDrawPoint(3X11) XLIB FUNCTIONS XDrawPoint(3X11)
-
-
- SSTTRRUUCCTTUURREESS
- The _X_P_o_i_n_t structure contains:
-
- typedef struct {
- short x, y;
- } XPoint;
-
- All x and y members are signed integers. The width and
- height members are 16-bit unsigned integers. You should
- be careful not to generate coordinates and sizes out of
- the 16-bit ranges, because the protocol only has 16-bit
- fields for these values.
-
- DDIIAAGGNNOOSSTTIICCSS
- _B_a_d_D_r_a_w_a_b_l_e
- A value for a Drawable argument does not name a
- defined Window or Pixmap.
-
- _B_a_d_G_C A value for a GContext argument does not name a
- defined GContext.
-
- _B_a_d_M_a_t_c_h An _I_n_p_u_t_O_n_l_y window is used as a Drawable.
-
- _B_a_d_M_a_t_c_h Some argument or pair of arguments has the cor-
- rect type and range but fails to match in some
- other way required by the request.
-
- _B_a_d_V_a_l_u_e Some numeric value falls outside the range of
- values accepted by the request. Unless a spe-
- cific 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.
-
- SSEEEE AALLSSOO
- XDrawArc(3X11), XDrawLine(3X11), XDrawRectangle(3X11)
- _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X Version 11 Release 6.1 2
-
-
-