~siretart/lcd4linux/debian

« back to all changes in this revision

Viewing changes to widget.h

  • Committer: Reinhard Tartler
  • Date: 2011-04-27 17:28:49 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: siretart@tauware.de-20110427172849-mj5cj5a0igpcc9fn
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: widget.h 728 2007-01-14 11:14:38Z michael $
2
 
 * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget.h $
 
1
/* $Id: widget.h 996 2009-03-23 17:22:24Z volker $
 
2
 * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget.h $
3
3
 *
4
4
 * generic widget handling
5
5
 *
6
 
 * Copyright (C) 2003, 2004 Michael Reinelt <reinelt@eunet.at>
 
6
 * Copyright (C) 2003, 2004 Michael Reinelt <michael@reinelt.co.at>
7
7
 * Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
8
8
 *
9
9
 * This file is part of LCD4Linux.
56
56
    int row;
57
57
    int col;
58
58
    void *data;
 
59
    int x2;                     /* x of opposite corner, -1 for no display widget */
 
60
    int y2;                     /* y of opposite corner, -1 for no display widget */
59
61
} WIDGET;
60
62
 
61
63
 
68
70
 
69
71
int widget_register(WIDGET_CLASS * widget);
70
72
void widget_unregister(void);
 
73
int intersect(WIDGET * w1, WIDGET * w2);
71
74
int widget_add(const char *name, const int type, const int layer, const int row, const int col);
72
75
WIDGET *widget_find(int type, void *needle);
73
76
int widget_color(const char *section, const char *name, const char *key, RGBA * C);
74
77
 
 
78
#undef MIN
 
79
#define MIN(a,b) ((a) < (b) ? (a) : (b))
 
80
#undef MAX
 
81
#define MAX(a,b) ((a) > (b) ? (a) : (b))
 
82
#define NOCOORD (-1)
 
83
 
75
84
#endif