root/tags/0.10.0/drv_generic_graphic.h

Revision 547, 2.9 kB (checked in by reinelt, 4 years ago)

[lcd4linux @ 2005-05-08 04:32:43 by reinelt]
CodingStyle? added and applied

Line 
1/* $Id: drv_generic_graphic.h,v 1.9 2005/05/08 04:32:44 reinelt Exp $
2 *
3 * generic driver helper for graphic displays
4 *
5 * Copyright (C) 1999, 2000 Michael Reinelt <reinelt@eunet.at>
6 * Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
7 *
8 * This file is part of LCD4Linux.
9 *
10 * LCD4Linux is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2, or (at your option)
13 * any later version.
14 *
15 * LCD4Linux is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
24 *
25 * $Log: drv_generic_graphic.h,v $
26 * Revision 1.9  2005/05/08 04:32:44  reinelt
27 * CodingStyle added and applied
28 *
29 * Revision 1.8  2005/01/18 06:30:23  reinelt
30 * added (C) to all copyright statements
31 *
32 * Revision 1.7  2004/06/26 12:04:59  reinelt
33 *
34 * uh-oh... the last CVS log message messed up things a lot...
35 *
36 * Revision 1.6  2004/06/26 09:27:21  reinelt
37 *
38 * added '-W' to CFLAGS
39 * changed all C++ comments to C ones
40 * cleaned up a lot of signed/unsigned mistakes
41 *
42 * Revision 1.5  2004/06/20 10:09:55  reinelt
43 *
44 * 'const'ified the whole source
45 *
46 * Revision 1.4  2004/06/08 21:46:38  reinelt
47 *
48 * splash screen for X11 driver (and generic graphic driver)
49 *
50 * Revision 1.3  2004/06/01 06:45:30  reinelt
51 *
52 * some Fixme's processed
53 * documented some code
54 *
55 * Revision 1.2  2004/02/18 06:39:20  reinelt
56 * T6963 driver for graphic displays finished
57 *
58 * Revision 1.1  2004/02/15 21:43:43  reinelt
59 * T6963 driver nearly finished
60 * framework for graphic displays done
61 * i2c_sensors patch from Xavier
62 * some more old generation files removed
63 *
64 */
65
66
67#ifndef _DRV_GENERIC_GRAPHIC_H_
68#define _DRV_GENERIC_GRAPHIC_H_
69
70
71#include <termios.h>
72#include "widget.h"
73
74
75extern int DROWS, DCOLS;  /* display size */
76extern int LROWS, LCOLS;  /* layout size */
77extern int XRES, YRES;    /* pixel width/height of one char  */
78
79/* framebuffer */
80extern unsigned char *drv_generic_graphic_FB;
81
82/* these functions must be implemented by the real driver */
83void (*drv_generic_graphic_real_blit) (const int row, const int col, const int height, const int width);
84
85/* generic functions and widget callbacks */
86int drv_generic_graphic_init(const char *section, const char *driver);
87int drv_generic_graphic_clear(void);
88int drv_generic_graphic_greet(const char *msg1, const char *msg2);
89int drv_generic_graphic_draw(WIDGET * W);
90int drv_generic_graphic_icon_draw(WIDGET * W);
91int drv_generic_graphic_bar_draw(WIDGET * W);
92int drv_generic_graphic_quit(void);
93
94#endif
Note: See TracBrowser for help on using the browser.