gpkplotting.h

Go to the documentation of this file.
00001 /*
00002  *      GTK plotting routines include file
00003  *
00004  *      Copyright (c) 1999 Mark Taylor
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the
00018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
00020  */
00021 
00022 #ifndef LAME_GPKPLOTTING_H
00023 #define LAME_GPKPLOTTING_H
00024 
00025 #include <gtk/gtk.h>
00026 
00027 /* allocate a graphing widget */
00028 GtkWidget *gpk_plot_new(int width, int height);
00029 
00030 /* graph a function in the graphing widged */
00031 void    gpk_graph_draw(GtkWidget * widget,
00032                        int n, gdouble * xcord, gdouble * ycord,
00033                        gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx,
00034                        int clear, char *title, GdkColor * color);
00035 
00036 /* draw a rectangle in the graphing widget */
00037 void    gpk_rectangle_draw(GtkWidget * widget, /* plot on this widged */
00038                            gdouble xcord[2], gdouble ycord[2], /* corners */
00039                            gdouble xmn, gdouble ymn, /* coordinates of corners */
00040                            gdouble xmx, gdouble ymx, GdkColor * color); /* color to use */
00041 
00042 /* make a bar graph in the graphing widged */
00043 void    gpk_bargraph_draw(GtkWidget * widget,
00044                           int n, gdouble * xcord, gdouble * ycord,
00045                           gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx,
00046                           int clear, char *title, int bwidth, GdkColor * color);
00047 
00048 /* set forground color  */
00049 void    setcolor(GtkWidget * widget, GdkColor * color, int red, int green, int blue);
00050 
00051 #endif

Generated on Sun Dec 2 11:34:17 2007 for LAME by  doxygen 1.5.2