NAME

XPolygonRegion, XClipBox - generate regions

SYNTAX

Region XPolygonRegion(XPoint _p_o_i_n_t_s[], int _n, int _f_i_l_l___r_u_l_e); int XClipBox(Region _r, XRectangle *_r_e_c_t___r_e_t_u_r_n);

ARGUMENTS

_f_i_l_l___r_u_l_e Specifies the fill-rule you want to set for the specified GC.
You can pass _E_v_e_n_O_d_d_R_u_l_e or _W_i_n_d_i_n_g_R_u_l_e.
_n Specifies the number of points in the polygon.
_p_o_i_n_t_s Specifies an array of points.
_r Specifies the region.
_r_e_c_t___r_e_t_u_r_n Returns the smallest enclosing rectangle.

DESCRIPTION

The _X_P_o_l_y_g_o_n_R_e_g_i_o_n function returns a region for the polygon defined by the points array. For an explanation of fill_rule, see _X_C_r_e_a_t_e_G_C.

The _X_C_l_i_p_B_o_x function returns the smallest rectangle enclosing the specified region.

SEE ALSO

XCreateGC(3X11), XDrawPoint(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