ToDo-List / Wishlist for lcd4linux // 2000-04-04 Michael Reinelt // implement some sort of 'graphs', similar to bars, but with a time axis // can be filled (made up of bars) or not (needs raster graphics) // done 2001-03-16 -lt. // 2000-04-04 Michael Reinelt // write a driver for PNG. This should be the first step towards a WWW-driver. // Done 2001-03-01 -lt. 2000-04-15 Thomas Skyt Jessen show partition information (used, free, ...) 2000-04-25 Michael Mueller show process information // 2000-12-03 Ghassan Matar // show other sensors than temperature // we have to use libsensors instead of parsing the proc files directly // Refused 2003-08-01 -mr // 2000-12-03 Ghassan Matar // show contents of any text file // the file should only contain one line, with a fixed format // there are two possibilities: text and numbers // numbers can be used for bars, too // Done 2000-03-08, look at %x -lt // 2000-12-03 Ghassan Matar // accept data from external sources (fifo?) // Done 2000-03-08, look at %x -lt // 2001-02-11 Carsten Nau // connect a LED to a spare pin of the parallel port and show if ISDN // is online // Done with GPO's -mr // 2001-01-27 Axel Ehnert // - display numer of emails in a mailbox // - display seti@home values // done. // 2001-03-05 Leo Tötsch // rename some tokens: %o->%os, %v->%ov, %r->%or, %p->%op, // will be done with the big config-rework // done with the "Next Generation Layout" // 2001-03-05 Leo Tötsch // replace T_EXTENDED with a Flag similar to 'bar' // rejected, T_EXTENDED does a good job -mr // 2001-03-07 Michael Reinelt // use ppdev instead of ugly outb() // done 2001-03-14 -mr // 2001-03-09 Michael Reinelt // replace udelay() assembly loop with rdtsc (read time stamp counter) // at least try to.... // done 2001-03-14 -mr // 2001-03-09 Leo Tötsch // read configuration file earlier (before forking) so that specific drivers // (especially 'Text') would not fork. // There's a reason for forking that early, but I forgot... // done somewhere in mid 2003 MR // 2001-03-12 Michael Reinelt // remove USE_OLD_UDELAY after wide testing of new udelay code // done with the "Next Generation Layout" // 2001-03-12 Michael Reinelt // create a NEWS file with changes/enhancements of every release // done 2001-03-13 -mr 2001-03-14 Leopold Toetsch improve unseen for mbox (check Status:) // 2001-03-14 Michael Reinelt // add a new Token 'nc' for 'network collisions' // done with the "Next Generation Layout" 2001-03-14 Michael Reinelt add translation tables ('german umlauts' don't follow any scheme on most displays) // 2001-03-15 Leopold Toetsch // Text display has troubles with '\r' // done 2001-03-16, replace \r,\n with '_' -lt // 2001-03-24 Carsten Nau // change network clients to support different devices // at the moment the sum of all eth* devices is calculated // %n* should be extended tokens // done with the "Next Generation Layout" // 2001-03-24 Brian Cleven // support 40x4 displays with two HD44780 chips on it // we need another 'Enable' line for this // this way one could connect two displays to one parallel port, too // done with 0.9.11 MR // 2001-05-25 Jens Garthe // detect wether curses.h and libncurses is installed, and // don't include the 'Text'-driver if not. // _should_ work now 2001-05-31 -lt // 2001-09-11 Michael Reinelt // use new extended tokens to split up several data sources // (CPU, Net, Disk, ISDN, ...) // e.g. '%nw' is 'network transmit' for _all_ devices // '%n0w' is 'network transmit' for eth0 // '%n1w' for eth1 // done with the "Next Generation Layout" // 2001-09-11 Michael Reinelt // remove bar code from drivers and create a common bar library // done somewhere in 2003 -mr // 2001-09-12 Carsten Nau // make the output for emails shorter
/* $Id$
 * $URL$
 *
 * image widget handling
 *
 * Copyright (C) 2006 Michael Reinelt <michael@reinelt.co.at>
 * Copyright (C) 2006 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
 *
 * This file is part of LCD4Linux.
 *
 * LCD4Linux is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * LCD4Linux is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */


#ifndef _WIDGET_IMAGE_H_
#define _WIDGET_IMAGE_H_

#include "property.h"
#include "rgb.h"

typedef struct WIDGET_IMAGE {
    void *gdImage;		/* raw gd image */
    RGBA *bitmap;		/* image bitmap */
    int width, height;		/* size of the image */
    PROPERTY file;		/* image filename */
    PROPERTY update;		/* update interval */
    PROPERTY reload;		/* reload image on update? */
    PROPERTY visible;		/* image visible? */
    PROPERTY inverted;		/* image inverted? */
} WIDGET_IMAGE;

extern WIDGET_CLASS Widget_Image;

#endif