Functions to save screenshot from graph / curve(s)
More...
#include <gtk/gtk.h>
#include <stdlib.h>
#include "global.h"
#include "interface.h"
#include "curve.h"
Go to the source code of this file.
|
G_MODULE_EXPORT void | set_size (GtkEntry *val, gpointer data) |
| set image size entry callback
|
|
G_MODULE_EXPORT void | set_background (GtkToggleButton *backb, gpointer data) |
| show / hide image background toggle callback GTK3
|
|
G_MODULE_EXPORT void | choose_format (GtkComboBox *box, gpointer cid) |
| change image format
|
|
G_MODULE_EXPORT void | run_write_image (GtkDialog *info, gint response_id, gpointer data) |
| write image - running the dialog GTK3
|
|
void | write_image (gpointer curetow) |
| write image - creating the file chooser dialog
|
|
G_MODULE_EXPORT void | run_save_image (GtkDialog *save_img, gint response_id, gpointer data) |
| export curve window plot to image - running the dialog
|
|
void | save_image (gpointer cdata) |
| export curve window plot to image - creating the dialog
|
|
Functions to save screenshot from graph / curve(s)
- Author
- Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r
Definition in file w_img.c.
◆ choose_format()
G_MODULE_EXPORT void choose_format |
( |
GtkComboBox * | box, |
|
|
gpointer | cid ) |
change image format
- Parameters
-
box | the GtkComboBox sending the signal |
cid | the associated data pointer |
Definition at line 135 of file w_img.c.
◆ run_save_image()
G_MODULE_EXPORT void run_save_image |
( |
GtkDialog * | save_img, |
|
|
gint | response_id, |
|
|
gpointer | data ) |
export curve window plot to image - running the dialog
- Parameters
-
save_img | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 293 of file w_img.c.
◆ run_write_image()
G_MODULE_EXPORT void run_write_image |
( |
GtkDialog * | info, |
|
|
gint | response_id, |
|
|
gpointer | data ) |
write image - running the dialog GTK3
- Parameters
-
info | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 204 of file w_img.c.
◆ save_image()
void save_image |
( |
gpointer | cdata | ) |
|
export curve window plot to image - creating the dialog
- Parameters
-
cdata | the associated data pointer |
Definition at line 326 of file w_img.c.
◆ set_background()
G_MODULE_EXPORT void set_background |
( |
GtkToggleButton * | backb, |
|
|
gpointer | data ) |
show / hide image background toggle callback GTK3
- Parameters
-
backb | the GtkTogglekButton sending the signal |
data | the associated data pointer |
Definition at line 110 of file w_img.c.
◆ set_size()
G_MODULE_EXPORT void set_size |
( |
GtkEntry * | val, |
|
|
gpointer | data ) |
set image size entry callback
- Parameters
-
val | the GtkEntry sending the signal |
data | the associated data pointer |
Definition at line 70 of file w_img.c.
◆ write_image()
void write_image |
( |
gpointer | curetow | ) |
|
write image - creating the file chooser dialog
- Parameters
-
curetow | the associated data pointer |
Definition at line 236 of file w_img.c.
◆ back_alpha
◆ forme
◆ i_pattern
Initial value:={"*.png",
"*.pdf",
"*.svg",
"*.eps"}
Definition at line 176 of file w_img.c.
◆ i_title
Initial value:={"Portable Network Graphics",
"Portable Document File",
"Scalable Vector Graphics",
"Encapsulated Post-Script Image"}
Definition at line 172 of file w_img.c.
◆ thedata