aboutsummaryrefslogtreecommitdiffstats
path: root/bar.h
diff options
context:
space:
mode:
authorreinelt <>2002-08-19 07:36:29 +0000
committerreinelt <>2002-08-19 07:36:29 +0000
commitd8134396763fbf4ace33e6adfc98ebcb9ce3d49f (patch)
tree0dfe7bde0b7acf69adcbcae058b2939774b21f60 /bar.h
parent14f4600010f07dfd1e6b91e1038c468b40c8f748 (diff)
downloadlcd4linux-d8134396763fbf4ace33e6adfc98ebcb9ce3d49f.tar.gz
[lcd4linux @ 2002-08-19 07:36:29 by reinelt]
finished bar.c, USBLCD is the first driver that uses the generic bar functions
Diffstat (limited to 'bar.h')
-rw-r--r--bar.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/bar.h b/bar.h
index 4b932d4..2864cc7 100644
--- a/bar.h
+++ b/bar.h
@@ -1,4 +1,4 @@
-/* $Id: bar.h,v 1.1 2002/08/19 04:41:20 reinelt Exp $
+/* $Id: bar.h,v 1.2 2002/08/19 07:36:29 reinelt Exp $
*
* generic bar handling
*
@@ -20,6 +20,10 @@
*
*
* $Log: bar.h,v $
+ * Revision 1.2 2002/08/19 07:36:29 reinelt
+ *
+ * finished bar.c, USBLCD is the first driver that uses the generic bar functions
+ *
* Revision 1.1 2002/08/19 04:41:20 reinelt
* introduced bar.c, moved bar stuff from display.h to bar.h
*
@@ -42,4 +46,28 @@
#define BAR_V (BAR_U | BAR_D | BAR_T)
#define BAR_HV (BAR_H | BAR_V)
+
+typedef struct {
+ int len1;
+ int len2;
+ int type;
+ int segment;
+} BAR;
+
+typedef struct {
+ int len1;
+ int len2;
+ int type;
+ int used;
+ int ascii;
+} SEGMENT;
+
+
+int bar_init (int rows, int cols, int xres, int yres, int chars);
+void bar_clear(void);
+void bar_add_segment(int len1, int len2, int type, int ascii);
+int bar_draw (int type, int row, int col, int max, int len1, int len2);
+int bar_process (int(*defchar)(int ascii, char *matrix));
+int bar_peek (int row, int col);
+
#endif