	    C
		     X-Windows

	     X-Windows
    graph_x11.zip.
  :

	1.  :
		unzip graph_x11.zip
	2.   graph_x11,   :
		cd graph_x11
	3.  :
		make
	4. 
		./plot


	 

	    :

	plot_x11.h, plot_x11. -    
		  X11.
		   . 
		      
		     
		   man

	test.c	-     plot_x11.c;
		  plot_x11.h

	Makefile -       make

	    plot_x11.c   test.c
 

	DrawWindow (DrawWindowContent, KeyPressFunction);


	DrawWindowContent - ,    
			    ;     
			      

	KeyPressFunction  - ,     
			    


                   

	       -
        .
 x   ,  y -  . 
     (0,0).
       
nWWidth  nWHeight.


             

            

   WSetColor (<>);

               
plot_x11.h.  

BLACK           -
BLUE            -
GREEN           -
CYAN            -
RED             -
MAGENTA         -
BROWN           -
LIGHTGRAY       -
DARKGRAY        -
LIGHTBLUE       --
LIGHTGREEN      --
LIGHTCYAN       --
LIGHTRED        --
LIGHTMAGENTA    --
YELLOW          -
WHITE           --

      ( ,   WDrawPoint,
WDrawLine, WDrawRectangle)     
   ,         
 .


                       

          (x,y)  :

   WDrawPoint (x,y);


                        

	      (xa, ya) 
   (xb, yb)  :

   WDrawLine (xa, ya, xb, yb);


            

                
 (left,top)     (right,bottom) -
 :

   WFillRectangle (left, top, right, bottom);


           

               
 (left,top)     (right,bottom) -
 :

   WDrawRectangle (left, top, right, bottom);


	    

	      
(x1, y1), (x2, y2), (x3, y3)  :

   WFillTriangle (x1, y1, x2, y2, x3, y3);


                       

	    *s,    (x, y),
 :

   WDrawString (s, x, y);

,

   outtext ("Enter x", 10, 20);


                     

                -
:
1.   :

   char s[80];

2.         ()  
    sprintf

   sprintf (s,<>,<>);

3.   s     .


		    

    WSetTitle (<>);


                  

	  ,   -
,      ,
   X11    .
. Makefile  .

