27 lines
716 B
C
27 lines
716 B
C
#ifndef _HEXAGRAM_SPEEDO_H
|
|
#define _HEXAGRAM_SPEEDO_H
|
|
|
|
#include <cairo.h>
|
|
|
|
#include <hexagram/gauge.h>
|
|
|
|
#define HEXAGRAM_SPEEDO_MAX_KPH 289.682
|
|
#define HEXAGRAM_SPEEDO_MAX_MPH 180.000
|
|
|
|
typedef struct _hexagram_speedo {
|
|
hexagram_gauge gauge;
|
|
} hexagram_speedo;
|
|
|
|
void hexagram_speedo_init(hexagram_speedo *speedo,
|
|
double x,
|
|
double y,
|
|
double radius);
|
|
|
|
void hexagram_speedo_draw_face(hexagram_speedo *speedo,
|
|
cairo_t *cr);
|
|
|
|
void hexagram_speedo_draw_needle(hexagram_speedo *speedo,
|
|
cairo_t *cr,
|
|
double kph);
|
|
|
|
#endif /* _HEXAGRAM_SPEEDO_H */
|