hexagram/include/hexagram/cluster.h

36 lines
855 B
C

#ifndef _HEXAGRAM_CLUSTER_H
#define _HEXAGRAM_CLUSTER_H
#include <cairo.h>
#include <hexagram/tacho.h>
#include <hexagram/speedo.h>
#include <hexagram/thermo.h>
#include <hexagram/fuel.h>
#include <hexagram/mfd.h>
typedef struct _hexagram_cluster {
hexagram_tacho tacho;
hexagram_speedo speedo;
hexagram_thermo thermo;
hexagram_fuel fuel;
hexagram_mfd mfd;
double width,
height;
struct {
double rpm, rps, temp, fuel;
} state;
} hexagram_cluster;
hexagram_cluster *hexagram_cluster_new(double width,
double height);
void hexagram_cluster_draw_bg(hexagram_cluster *cluster,
cairo_t *cr);
void hexagram_cluster_draw_fg(hexagram_cluster *cluster,
cairo_t *cr);
#endif /* _HEXAGRAM_CLUSTER_H */