2019-06-09 13:55:54 -05:00
|
|
|
#ifndef _HEXAGRAM_THERMO_H
|
|
|
|
#define _HEXAGRAM_THERMO_H
|
|
|
|
|
|
|
|
#include <cairo.h>
|
|
|
|
|
2019-06-09 15:46:41 -05:00
|
|
|
#include <hexagram/gauge.h>
|
2019-06-09 13:55:54 -05:00
|
|
|
|
2019-06-09 15:46:41 -05:00
|
|
|
typedef struct _hexagram_thermo {
|
|
|
|
hexagram_gauge gauge;
|
|
|
|
double redline;
|
|
|
|
} hexagram_thermo;
|
|
|
|
|
|
|
|
void hexagram_thermo_init(hexagram_thermo *thermo,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
double radius,
|
|
|
|
double redline);
|
|
|
|
|
|
|
|
void hexagram_thermo_draw_face(hexagram_thermo *thermo,
|
|
|
|
cairo_t *cr);
|
|
|
|
|
|
|
|
void hexagram_thermo_draw_needle(hexagram_thermo *thermo,
|
|
|
|
cairo_t *cr,
|
2019-06-09 13:55:54 -05:00
|
|
|
double temp);
|
|
|
|
|
|
|
|
#endif /* _HEXAGRAM_THERMO_H */
|