26 lines
676 B
C
26 lines
676 B
C
#ifndef _HEXAGRAM_TACHO_H
|
|
#define _HEXAGRAM_TACHO_H
|
|
|
|
#include <cairo.h>
|
|
|
|
#include <hexagram/gauge.h>
|
|
|
|
typedef struct _hexagram_tacho {
|
|
hexagram_gauge gauge;
|
|
double redline;
|
|
} hexagram_tacho;
|
|
|
|
void hexagram_tacho_init(hexagram_tacho *tacho,
|
|
double x,
|
|
double y,
|
|
double radius,
|
|
double redline);
|
|
|
|
void hexagram_tacho_draw_face(hexagram_tacho *tacho,
|
|
cairo_t *cr);
|
|
|
|
void hexagram_tacho_draw_needle(hexagram_tacho *tacho,
|
|
cairo_t *cr,
|
|
double rpm);
|
|
|
|
#endif /* _HEXAGRAM_TACHO_H */
|