diff options
Diffstat (limited to 'widget.h')
-rw-r--r-- | widget.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,9 +1,9 @@ -/* $Id: widget.h 728 2007-01-14 11:14:38Z michael $ - * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget.h $ +/* $Id: widget.h 996 2009-03-23 17:22:24Z volker $ + * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget.h $ * * generic widget handling * - * Copyright (C) 2003, 2004 Michael Reinelt <reinelt@eunet.at> + * Copyright (C) 2003, 2004 Michael Reinelt <michael@reinelt.co.at> * Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net> * * This file is part of LCD4Linux. @@ -56,6 +56,8 @@ typedef struct WIDGET { int row; int col; void *data; + int x2; /* x of opposite corner, -1 for no display widget */ + int y2; /* y of opposite corner, -1 for no display widget */ } WIDGET; @@ -68,8 +70,15 @@ typedef struct WIDGET { int widget_register(WIDGET_CLASS * widget); void widget_unregister(void); +int intersect(WIDGET * w1, WIDGET * w2); int widget_add(const char *name, const int type, const int layer, const int row, const int col); WIDGET *widget_find(int type, void *needle); int widget_color(const char *section, const char *name, const char *key, RGBA * C); +#undef MIN +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#undef MAX +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#define NOCOORD (-1) + #endif |