home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Sound / LAME / Source / gpkplotting.h < prev    next >
C/C++ Source or Header  |  1999-04-28  |  1KB  |  28 lines

  1. #include <gtk/gtk.h>
  2.  
  3. /* allocate a graphing widget */
  4. GtkWidget *gpk_plot_new(int width,int height);
  5.  
  6. /* graph a function in the graphing widged */
  7. void gpk_graph_draw(GtkWidget *widget,
  8.            int n, gdouble *xcord, gdouble *ycord,
  9.            gdouble xmn, gdouble ymn,gdouble xmx,gdouble ymx,
  10.            int clear, char * title,GdkColor *color);
  11.  
  12. /* draw a rectangle in the graphing widget */
  13. void gpk_rectangle_draw(GtkWidget *widget,                  /* plot on this widged */
  14.             gdouble xcord[2], gdouble ycord[2], /* corners */
  15.             gdouble xmn,gdouble ymn,            /* coordinates of corners */
  16.             gdouble xmx,gdouble ymx,
  17.             GdkColor *color);                         /* color to use */
  18.  
  19. /* make a bar graph in the graphing widged */
  20. void gpk_bargraph_draw(GtkWidget *widget,
  21.            int n, gdouble *xcord, gdouble *ycord,
  22.            gdouble xmn, gdouble ymn,gdouble xmx,gdouble ymx,
  23.            int clear, char * title, int bwidth,GdkColor *color);
  24.  
  25. /* set forground color  */
  26. void setcolor(GtkWidget *widget, GdkColor *color,int red,int green,int blue);
  27.  
  28.