aboutsummaryrefslogtreecommitdiffstats
path: root/bar.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2002-08-19 07:36:29 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2002-08-19 07:36:29 +0000
commit3459cefb2dcd1736f50e8134fdc2518aa8edc402 (patch)
tree0dfe7bde0b7acf69adcbcae058b2939774b21f60 /bar.h
parentd72755a9609479f9b3463a96c3a71fd7084f2fb3 (diff)
downloadlcd4linux-3459cefb2dcd1736f50e8134fdc2518aa8edc402.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 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@159 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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