⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpkplotting.h

📁 JPEG-MPEG編解碼技術書集的代碼
💻 H
字号:
#include <gtk/gtk.h>

/* allocate a graphing widget */
GtkWidget *gpk_plot_new(int width,int height);

/* graph a function in the graphing widged */
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);

/* draw a rectangle in the graphing widget */
void gpk_rectangle_draw(GtkWidget *widget,                  /* plot on this widged */
			gdouble xcord[2], gdouble ycord[2], /* corners */
			gdouble xmn,gdouble ymn,            /* coordinates of corners */
			gdouble xmx,gdouble ymx,
			GdkColor *color);                         /* color to use */

/* make a bar graph in the graphing widged */
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 bwidth,GdkColor *color);

/* set forground color  */
void setcolor(GtkWidget *widget, GdkColor *color,int red,int green,int blue);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -