gpkplotting.c File Reference

#include <config.h>
#include "gpkplotting.h"

Include dependency graph for gpkplotting.c:

Go to the source code of this file.

Defines

#define strchr   index
#define strrchr   rindex
#define memcpy(d, s, n)   bcopy ((s), (d), (n))
#define memmove(d, s, n)   bcopy ((s), (d), (n))

Functions

char * strchr ()
char ** strrchr ()
void setcolor (GtkWidget *widget, GdkColor *color, gint red, gint green, gint blue)
void gpk_redraw (GdkPixmap *pixmap, GtkWidget *pixmapbox)
static GdkPixmap ** findpixmap (GtkWidget *widget)
void gpk_graph_draw (GtkWidget *widget, int n, gdouble *xcord, gdouble *ycord, gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx, int clear, char *title, GdkColor *color)
void gpk_rectangle_draw (GtkWidget *widget, gdouble *xcord, gdouble *ycord, gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx, GdkColor *color)
void gpk_bargraph_draw (GtkWidget *widget, int n, gdouble *xcord, gdouble *ycord, gdouble xmn, gdouble ymn, gdouble xmx, gdouble ymx, int clear, char *title, int barwidth, GdkColor *color)
static gint configure_event (GtkWidget *widget, GdkEventConfigure *event, gpointer data)
static gint expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
GtkWidget * gpk_plot_new (int width, int height)

Variables

static gint num_plotwindows = 0
static gint max_plotwindows = 10
static GdkPixmap * pixmaps [10]
static GtkWidget * pixmapboxes [10]


Define Documentation

#define memcpy ( d,
s,
 )     bcopy ((s), (d), (n))

Definition at line 39 of file gpkplotting.c.

#define memmove ( d,
s,
 )     bcopy ((s), (d), (n))

Definition at line 40 of file gpkplotting.c.

#define strchr   index

Definition at line 34 of file gpkplotting.c.

#define strrchr   rindex

Definition at line 35 of file gpkplotting.c.


Function Documentation

static gint configure_event ( GtkWidget *  widget,
GdkEventConfigure *  event,
gpointer  data 
) [static]

Definition at line 272 of file gpkplotting.c.

References findpixmap(), and TRUE.

Referenced by gpk_plot_new().

Here is the call graph for this function:

static gint expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  data 
) [static]

Definition at line 291 of file gpkplotting.c.

References FALSE, and findpixmap().

Referenced by gpk_plot_new().

Here is the call graph for this function:

static GdkPixmap** findpixmap ( GtkWidget *  widget  )  [static]

Definition at line 82 of file gpkplotting.c.

References i, num_plotwindows, pixmapboxes, and pixmaps.

Referenced by configure_event(), expose_event(), gpk_bargraph_draw(), gpk_graph_draw(), and gpk_rectangle_draw().

void gpk_bargraph_draw ( GtkWidget *  widget,
int  n,
gdouble *  xcord,
gdouble *  ycord,
gdouble  xmn,
gdouble  ymn,
gdouble  xmx,
gdouble  ymx,
int  clear,
char *  title,
int  barwidth,
GdkColor *  color 
)

Definition at line 186 of file gpkplotting.c.

References findpixmap(), gpk_redraw(), i, and TRUE.

Here is the call graph for this function:

void gpk_graph_draw ( GtkWidget *  widget,
int  n,
gdouble *  xcord,
gdouble *  ycord,
gdouble  xmn,
gdouble  ymn,
gdouble  xmx,
gdouble  ymx,
int  clear,
char *  title,
GdkColor *  color 
)

Definition at line 94 of file gpkplotting.c.

References findpixmap(), gpk_redraw(), i, and TRUE.

Here is the call graph for this function:

GtkWidget* gpk_plot_new ( int  width,
int  height 
)

Definition at line 310 of file gpkplotting.c.

References configure_event(), expose_event(), max_plotwindows, num_plotwindows, pixmapboxes, and pixmaps.

Referenced by gtkcontrol().

Here is the call graph for this function:

void gpk_rectangle_draw ( GtkWidget *  widget,
gdouble *  xcord,
gdouble *  ycord,
gdouble  xmn,
gdouble  ymn,
gdouble  xmx,
gdouble  ymx,
GdkColor *  color 
)

Definition at line 150 of file gpkplotting.c.

References findpixmap(), gpk_redraw(), i, and TRUE.

Here is the call graph for this function:

void gpk_redraw ( GdkPixmap *  pixmap,
GtkWidget *  pixmapbox 
)

Definition at line 72 of file gpkplotting.c.

Referenced by gpk_bargraph_draw(), gpk_graph_draw(), and gpk_rectangle_draw().

void setcolor ( GtkWidget *  widget,
GdkColor *  color,
gint  red,
gint  green,
gint  blue 
)

Definition at line 58 of file gpkplotting.c.

char* strchr (  ) 

char* * strrchr (  ) 


Variable Documentation

gint max_plotwindows = 10 [static]

Definition at line 49 of file gpkplotting.c.

Referenced by gpk_plot_new().

gint num_plotwindows = 0 [static]

Definition at line 48 of file gpkplotting.c.

Referenced by findpixmap(), and gpk_plot_new().

GtkWidget* pixmapboxes[10] [static]

Definition at line 51 of file gpkplotting.c.

Referenced by findpixmap(), and gpk_plot_new().

GdkPixmap* pixmaps[10] [static]

Definition at line 50 of file gpkplotting.c.

Referenced by findpixmap(), and gpk_plot_new().


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