atomes 1.3.1
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 (Curve *this_curve, int ax)
 prepare axis data
void draw_frame (cairo_t *cr, Curve *this_curve, 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,
Curve * this_curve,
int rid,
int cid )

draw frame and axis data

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

Definition at line 163 of file frame.c.

◆ prep_axis_data()

void prep_axis_data ( Curve * this_curve,
int ax )

prepare axis data

Parameters
this_curvethe target Curve
axthe axis

Definition at line 132 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.