![]() |
![]() |
![]() |
GtkExtra2 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <gtkextra.h> enum GtkPlotPageSize; #define GTK_PLOT_LETTER_W #define GTK_PLOT_LETTER_H #define GTK_PLOT_LEGAL_W #define GTK_PLOT_LEGAL_H #define GTK_PLOT_A4_W #define GTK_PLOT_A4_H #define GTK_PLOT_EXECUTIVE_W #define GTK_PLOT_EXECUTIVE_H enum GtkPlotPageOrientation; enum GtkPlotUnits; GtkPlotPoint; 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);
typedef enum{ GTK_PLOT_LETTER , GTK_PLOT_LEGAL , GTK_PLOT_A4 , GTK_PLOT_EXECUTIVE , GTK_PLOT_CUSTOM } GtkPlotPageSize;
typedef enum{ GTK_PLOT_PORTRAIT , GTK_PLOT_LANDSCAPE } GtkPlotPageOrientation;
typedef enum{ GTK_PLOT_PSPOINTS , GTK_PLOT_MM , GTK_PLOT_CM , GTK_PLOT_INCHES } GtkPlotUnits;
void gtk_plot_pc_set_viewport (GtkPlotPC *pc, gdouble w, gdouble h);
|
|
|
|
|
void gtk_plot_pc_clip_mask (GtkPlotPC *pc, gdouble x, gdouble y, GdkBitmap *mask);
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|