hexagram/include/hexagram/temp.h
2024-01-18 20:49:52 -05:00

28 lines
669 B
C

#ifndef _HEXAGRAM_TEMP_H
#define _HEXAGRAM_TEMP_H
#include <hexagram/text.h>
#include <hexagram/icon.h>
typedef enum {
HEXAGRAM_TEMP_CELSIUS,
HEXAGRAM_TEMP_FAHRENHEIT
} hexagram_temp_units;
typedef struct _hexagram_temp {
hexagram_text text;
hexagram_icon icon;
hexagram_temp_units units;
double value;
} hexagram_temp;
int hexagram_temp_init(hexagram_temp *temp,
double x,
double y,
hexagram_text_align align);
void hexagram_temp_set_units(hexagram_temp *temp, hexagram_temp_units units);
void hexagram_temp_cleanup(hexagram_temp *temp);
#endif /* _HEXAGRAM_TEMP_H */