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

Functions to draw the frame. More...

#include <stdlib.h>
#include <gdk/gdk.h>
#include <cairo.h>
#include "global.h"
#include "curve.h"
+ Include dependency graph for frame.c:

Go to the source code of this file.

Functions

void prep_frame (cairo_t *fr, int da, double ti, ColRGBA dcol)
 draw frame line
 
void show_frame (cairo_t *cd, int tf, int da, int res[2], double ti, double x[2], double y[2], ColRGBA dcol)
 draw frame
 
void prep_axis_data (project *this_proj, int rid, int cid, int ax)
 prepare axis data
 
void draw_frame (cairo_t *cr, project *this_proj, int rid, int cid)
 draw frame and axis data
 

Detailed Description

Functions to draw the frame.

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

Function Documentation

◆ draw_frame()

void draw_frame ( cairo_t * cr,
project * this_proj,
int rid,
int cid )

draw frame and axis data

Parameters
crthe cairo drawing context to use for the draw
this_projthe target project
ridthe calculation id
cidthe curve id

Definition at line 165 of file frame.c.

◆ prep_axis_data()

void prep_axis_data ( project * this_proj,
int rid,
int cid,
int ax )

prepare axis data

Parameters
this_projthe target project
ridthe calculation id
cidthe curve id
axthe axis

Definition at line 134 of file frame.c.

◆ prep_frame()

void prep_frame ( cairo_t * fr,
int da,
double ti,
ColRGBA dcol )

draw frame line

Parameters
frthe cairo drawing context to use for the draw
dadash type
tiline width
dcolcolor

Definition at line 56 of file frame.c.

◆ show_frame()

void show_frame ( cairo_t * cd,
int tf,
int da,
int res[2],
double ti,
double x[2],
double y[2],
ColRGBA dcol )

draw frame

Parameters
cdthe cairo drawing context to use for the draw
tfframe type
dadash type
resimage size
tiline width
xx positions (right, left)
yy positions (top, bottom)
dcolcolor

Definition at line 81 of file frame.c.