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

Functions to draw the complete graph. More...

#include <gtk/gtk.h>
#include <cairo.h>
#include <cairo-pdf.h>
#include <cairo-ps.h>
#include <cairo-svg.h>
#include "global.h"
#include "curve.h"
+ Include dependency graph for show.c:

Go to the source code of this file.

Functions

void adjust_tool_model (int calc, int curve, gchar *string_path)
 adjust the content of the tool box tree model
 
void show_curve (GtkDrawingArea *area, cairo_t *cr, int width, int height, gpointer curve)
 show curve callback GTK3
 
void hide_curve (gpointer data)
 hide curve
 
G_MODULE_EXPORT gboolean to_hide_curve (GtkWidget *thecurve, GdkEvent *event, gpointer data)
 hide curve callback GTK3
 

Detailed Description

Functions to draw the complete graph.

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 show.c.

Function Documentation

◆ adjust_tool_model()

void adjust_tool_model ( int calc,
int curve,
gchar * string_path )
extern

adjust the content of the tool box tree model

Parameters
calcthe calculation
curvethe curve
string_paththe path in the tree view

Definition at line 216 of file tools.c.

◆ hide_curve()

void hide_curve ( gpointer data)

hide curve

Parameters
datathe associated data pointer

Definition at line 312 of file show.c.

◆ show_curve()

void show_curve ( GtkDrawingArea * area,
cairo_t * cr,
int width,
int height,
gpointer curve )

show curve callback GTK3

Parameters
areathe GtkDrawingArea sending the signal
crthe cairo drawing context to use for the draw
widthdrawing area width
heightdrawing area height
curvethe associated pointer data

Definition at line 77 of file show.c.

◆ to_hide_curve()

G_MODULE_EXPORT gboolean to_hide_curve ( GtkWidget * thecurve,
GdkEvent * event,
gpointer data )

hide curve callback GTK3

Parameters
thecurvethe GtkWidget sending the signal
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 342 of file show.c.