From 3459cefb2dcd1736f50e8134fdc2518aa8edc402 Mon Sep 17 00:00:00 2001 From: reinelt Date: Mon, 19 Aug 2002 07:36:29 +0000 Subject: [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 --- bar.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'bar.h') 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 -- cgit v1.2.3