atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
w_img.c File Reference

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"
+ Include dependency graph for w_img.c:

Go to the source code of this file.

Data Structures

struct  dwidget
 

Functions

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
 

Variables

double back_alpha
 
dwidget thedata
 
int forme
 
gchar * i_title [4]
 
gchar * i_pattern [4]
 

Detailed Description

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.

Function Documentation

◆ choose_format()

G_MODULE_EXPORT void choose_format ( GtkComboBox * box,
gpointer cid )

change image format

Parameters
boxthe GtkComboBox sending the signal
cidthe 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_imgthe GtkDialog sending the signal
response_idthe response id
datathe 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
infothe GtkDialog sending the signal
response_idthe response id
datathe 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
cdatathe 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
backbthe GtkTogglekButton sending the signal
datathe 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
valthe GtkEntry sending the signal
datathe 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
curetowthe associated data pointer

Definition at line 236 of file w_img.c.

Variable Documentation

◆ back_alpha

double back_alpha

Definition at line 58 of file w_img.c.

◆ forme

int forme

Definition at line 60 of file w_img.c.

◆ i_pattern

gchar* i_pattern[4]
Initial value:
={"*.png",
"*.pdf",
"*.svg",
"*.eps"}

Definition at line 176 of file w_img.c.

◆ i_title

gchar* i_title[4]
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

dwidget thedata

Definition at line 59 of file w_img.c.