43 #ifndef GTKHARDCOPY_HPP
44 #define GTKHARDCOPY_HPP 1
72 static void spinx_signal( GtkSpinButton *spinbutton,
74 static void spiny_signal( GtkSpinButton *spinbutton,
76 static int type_from_extension(
const char *filename );
77 static void ensure_extension( std::string &filename,
78 const std::string &extension );
79 static void treeview_changed_signal( GtkTreeSelection *selection,
83 void treeview_changed( GtkTreeSelection *selection );
88 void get_image_size( cairo_surface_t *p_surface,
89 int &width,
int &height );
90 static void unpremultiply_data( png_structp png,
91 png_row_infop row_info,
93 void write_to_png( cairo_surface_t *p_surface,
94 int width,
int height,
95 const char *filename );
97 void write_png_frame( cairo_surface_t *surface,
const char *filename );
98 void write_png_geom3dplot( cairo_surface_t *surface,
const char *filename );
100 void write_png(
const char *filename );
101 void write_eps(
const char *filename );
102 void write_svg(
const char *filename );
103 void write_pdf(
const char *filename );
114 GTKHardcopy( GtkWidget *window,
Frame *frame,
size_t width,
size_t height );
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
Interactive dialog for producing hardcopies.
Definition: gtkhardcopy.hpp:58
~GTKHardcopy()
Destructor.
Definition: gtkhardcopy.cpp:73
GTKHardcopy(GtkWidget *window, Frame *frame, size_t width, size_t height)
Create an interactive dialog for producing hardcopies of frame based plots.
Definition: gtkhardcopy.cpp:59
void run(void)
Run the dialog.
Definition: gtkhardcopy.cpp:212
Geometry 3D plotter.
Definition: geom3dplot.hpp:60