|
Packit |
47f805 |
/*
|
|
Packit |
47f805 |
* GTK plotting routines include file
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* Copyright (c) 1999 Mark Taylor
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
47f805 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
47f805 |
* License as published by the Free Software Foundation; either
|
|
Packit |
47f805 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
47f805 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
47f805 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
47f805 |
* Library General Public License for more details.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
47f805 |
* License along with this library; if not, write to the
|
|
Packit |
47f805 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
47f805 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
47f805 |
*/
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#ifndef LAME_GPKPLOTTING_H
|
|
Packit |
47f805 |
#define LAME_GPKPLOTTING_H
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#include <gtk/gtk.h>
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* allocate a graphing widget */
|
|
Packit |
47f805 |
GtkWidget *gpk_plot_new(int width, int height);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* graph a function in the graphing widged */
|
|
Packit |
47f805 |
void gpk_graph_draw(GtkWidget * widget,
|
|
Packit |
47f805 |
int n, gdouble * xcord, gdouble * ycord,
|
|
Packit |
47f805 |
gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx,
|
|
Packit |
47f805 |
int clear, char *title, GdkColor * color);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* draw a rectangle in the graphing widget */
|
|
Packit |
47f805 |
void gpk_rectangle_draw(GtkWidget * widget, /* plot on this widged */
|
|
Packit |
47f805 |
gdouble xcord[2], gdouble ycord[2], /* corners */
|
|
Packit |
47f805 |
gdouble xmn, gdouble ymn, /* coordinates of corners */
|
|
Packit |
47f805 |
gdouble xmx, gdouble ymx, GdkColor * color); /* color to use */
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* make a bar graph in the graphing widged */
|
|
Packit |
47f805 |
void gpk_bargraph_draw(GtkWidget * widget,
|
|
Packit |
47f805 |
int n, gdouble * xcord, gdouble * ycord,
|
|
Packit |
47f805 |
gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx,
|
|
Packit |
47f805 |
int clear, char *title, int bwidth, GdkColor * color);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* set forground color */
|
|
Packit |
47f805 |
void setcolor(GtkWidget * widget, GdkColor * color, int red, int green, int blue);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#endif
|