GtkType |
gtk_plot_pc_get_type |
(void); |
GtkObject * |
gtk_plot_pc_new |
(void); |
gboolean |
gtk_plot_pc_init |
(GtkPlotPC *pc); |
void |
gtk_plot_pc_leave |
(GtkPlotPC *pc); |
void |
gtk_plot_pc_set_viewport |
(GtkPlotPC *pc, gdouble w, gdouble h); |
void | gtk_plot_pc_gsave |
(GtkPlotPC *pc); |
void | gtk_plot_pc_grestore |
(GtkPlotPC *pc); |
void | gtk_plot_pc_clip |
(GtkPlotPC *pc, GdkRectangle *area); |
void | gtk_plot_pc_clip_mask |
(GtkPlotPC *pc, gdouble x, gdouble y, GdkBitmap *mask); |
void | gtk_plot_pc_set_color |
(GtkPlotPC *pc, GdkColor *color); |
void |
gtk_plot_pc_set_lineattr |
(GtkPlotPC *pc, gfloat line_width, GdkLineStyle line_style, GdkCapStyle cap_style, GdkJoinStyle join_style); |
void |
gtk_plot_pc_set_dash |
(GtkPlotPC *pc, gdouble offset_, gdouble *values, gint num_values); |
void |
gtk_plot_pc_draw_point |
(GtkPlotPC *pc, gdouble x, gdouble y); |
void |
gtk_plot_pc_draw_line |
(GtkPlotPC *pc, gdouble x1, gdouble y1, gdouble x2, gdouble y2); |
void |
gtk_plot_pc_draw_lines |
(GtkPlotPC *pc, GtkPlotPoint *points, gint numpoints); |
void |
gtk_plot_pc_draw_rectangle |
(GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
void | gtk_plot_pc_draw_polygon |
(GtkPlotPC *pc, gint filled, GtkPlotPoint *points, gint numpoints); |
void | gtk_plot_pc_draw_ellipse |
(GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
void | gtk_plot_pc_draw_circle |
(GtkPlotPC *pc, gint filled, gdouble x, gdouble y, gdouble size); |
void | gtk_plot_pc_set_font |
(GtkPlotPC *pc, GtkPSFont *psfont, gint height); |
void | gtk_plot_pc_draw_string |
(GtkPlotPC *pc, gint x, gint y, gint angle, const GdkColor *fg, const GdkColor *bg, gboolean transparent, gint border, gint border_space, gint border_width, gint shadow_width, const gchar *font, gint height, GtkJustification just, const gchar *text); |
void | gtk_plot_pc_draw_pixmap |
(GtkPlotPC *pc, GdkPixmap *pixmap, GdkBitmap *mask, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height, gdouble scale_x, gdouble scale_y); |
|
|
|
GtkObject *gtk_plot_pc_new (void); |
Create a new printing context.
Return | a new PlotPC object |
gboolean gtk_plot_pc_init (GtkPlotPC *pc); |
Initalize PlotPC object. (Increment pc->init_count)
pc | a PlotPC object |
Return | TRUE if success FALSE if pc->init_count <1 |
void gtk_plot_pc_leave (GtkPlotPC *pc); |
Decrement pc->init_count.
pc | a PlotPC object |
void gtk_plot_pc_set_viewport (GtkPlotPC *pc, gdouble w, gdouble h); |
Set the viewport (the printing window) of pc.
pc | a PlotPC object |
w,h | width,height of the window |
void gtk_plot_pc_clip_mask (GtkPlotPC *pc, gdouble x, gdouble y, GdkBitmap *mask); |
pc | |
x,y | |
mask |
void gtk_plot_pc_set_lineattr (GtkPlotPC *pc, gfloat line_width, GdkLineStyle line_style, GdkCapStyle cap_style, GdkJoinStyle join_style); |
pc | |
width | |
line_style | |
cap_style | |
join_style |
void gtk_plot_pc_set_dash (GtkPlotPC *pc, gdouble offset_, gdouble *values, gint num_values); |
pc | |
offset | |
values | |
num_values |
void gtk_plot_pc_draw_line (GtkPlotPC *pc, gdouble x1, gdouble y1, gdouble x2, gdouble y2); |
pc | |
x1,y1 | |
x2,y2 |
void gtk_plot_pc_draw_lines (GtkPlotPC *pc, GtkPlotPoint *points, gint numpoints); |
pc | |
points | |
numpoints |
void gtk_plot_pc_draw_rectangle (GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
pc | |
filled | |
x,y | |
width,height |
void gtk_plot_pc_draw_polygon (GtkPlotPC *pc, gint filled, GtkPlotPoint *points, gint numpoints); |
pc | |
filled | |
points | |
numpoints |
void gtk_plot_pc_draw_ellipse (GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
pc | |
filled | |
x,y | |
width,height |
void gtk_plot_pc_draw_circle (GtkPlotPC *pc, gint filled, gdouble x, gdouble y, gdouble size); |
pc | |
filled | |
x,y | |
size |
void gtk_plot_pc_set_font (GtkPlotPC *pc, GtkPSFont *psfont, gint height); |
pc | |
psfont | |
height |
void gtk_plot_pc_draw_string (GtkPlotPC *pc, gint x, gint y, gint angle, const GdkColor *fg, const GdkColor *bg, gboolean transparent, gint border, gint border_space, gint border_width, gint shadow_width, const gchar *font, gint height, GtkJustification just, const gchar *text); |
pc | |
x,y | |
angle | |
fg,bg | |
transparent | |
border | |
border_space | |
border_width | |
shadow_width | |
font | |
height | |
just | |
text |
void gtk_plot_pc_draw_pixmap (GtkPlotPC *pc, GdkPixmap *pixmap, GdkBitmap *mask, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height, gdouble scale_x, gdouble scale_y); |
pc | |
pixmap | |
mask | |
xarc,yarc | |
xdest,ydest | |
width,height | |
scale_x,scale_y |
void (* leave) (GtkPlotPC *pc); |
pc |
void (* set_viewport) (GtkPlotPC *pc, gdouble w, gdouble h); |
pc | |
w,h |
void (* gsave) (GtkPlotPC *pc); |
pc |
void (* grestore) (GtkPlotPC *pc); |
pc |
void (* clip) (GtkPlotPC *pc, const GdkRectangle *area); |
pc | |
area |
void (* clip_mask) (GtkPlotPC *pc, gdouble x, gdouble y, const GdkBitmap *mask); |
pc | |
x,y | |
mask |
void (* set_color) (GtkPlotPC *pc, const GdkColor *color); |
pc | |
color |
void (* set_lineattr) (GtkPlotPC *pc, gfloat line_width, GdkLineStyle line_style, GdkCapStyle cap_style, GdkJoinStyle join_style); |
pc | |
line_width | |
line_style | |
cap_style | |
join_style |
void (* set_dash) (GtkPlotPC *pc, gdouble offset_, gdouble *values, gint num_values); |
pc | |
offset | |
values | |
num_values |
void (* draw_point) (GtkPlotPC *pc, gdouble x, gdouble y); |
pc | |
x,y |
void (* draw_line) (GtkPlotPC *pc, gdouble x1, gdouble y1, gdouble x2, gdouble y2); |
pc | |
x1,y1 | |
x2,y2 |
void (* draw_lines) (GtkPlotPC *pc, GtkPlotPoint *points, gint numpoints); |
pc | |
points | |
numpoints |
void (* draw_rectangle) (GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
pc | |
filled | |
x,y | |
width,height |
void (* draw_polygon) (GtkPlotPC *pc, gboolean filled, GtkPlotPoint *points, gint numpoints); |
pc | |
filled | |
points | |
numpoints |
void (* draw_circle) (GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble size); |
pc | |
filled | |
x,y | |
size |
void (* draw_ellipse) (GtkPlotPC *pc, gboolean filled, gdouble x, gdouble y, gdouble width, gdouble height); |
pc | |
filled | |
x,y | |
width,height |
void (* set_font) (GtkPlotPC *pc, GtkPSFont *psfont, gint height); |
pc | |
psfont | |
height |
void (* draw_string) (GtkPlotPC *pc, gint x, gint y, gint angle, const GdkColor *fg, const GdkColor *bg, gboolean transparent, gint border, gint border_space, gint border_width, gint shadow_width, const gchar *font, gint height, GtkJustification just, const gchar *text); |
pc | |
x,y | |
angle | |
fg,bg | |
transparent | |
border | |
border_space | |
border_width | |
shadow_width | |
font | |
height | |
just | |
text |
void (* draw_pixmap) (GtkPlotPC *pc, GdkPixmap *pixmap, GdkBitmap *mask, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height, gdouble scale_x, gdouble scale_y); |
pc | |
pixmap | |
mask | |
xsrc,ysrc | |
xdest,ydest | |
width,height | |
scale_x,scale_y |
struct _GtkPlotPoint |
{ |
struct _GtkPlotPC |
{ |