1
/* $Id: widget_keypad.h,v 1.3 2006/07/19 01:35:31 cmay Exp $
3
* keypad widget handling
5
* Copyright (C) 2006 Chris Maj <cmaj@freedomcorpse.com>
6
* Copyright (C) 2006 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
8
* This file is part of LCD4Linux.
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)
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.
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.
25
* $Log: widget_keypad.h,v $
26
* Revision 1.3 2006/07/19 01:35:31 cmay
27
* Renamed keypad direction names to avoid conflict with Curses library defs.
28
* Added keypad support to Curses display driver.
30
* Revision 1.2 2006/02/25 13:36:33 geronet
31
* updated indent.sh, applied coding style
33
* Revision 1.1 2006/02/21 05:50:34 reinelt
34
* keypad support from Cris Maj
40
#ifndef _WIDGET_KEYPAD_H_
41
#define _WIDGET_KEYPAD_H_
48
WIDGET_KEY_CONFIRM = 16,
49
WIDGET_KEY_CANCEL = 32,
50
WIDGET_KEY_PRESSED = 64,
51
WIDGET_KEY_RELEASED = 128
54
typedef struct WIDGET_KEYPAD {
55
char *expression; /* expression that delivers the value */
56
void *tree; /* pre-compiled expression that delivers the value */
57
int val; /* current value of the expression */
58
KEYPADKEY key; /* which key */
62
extern WIDGET_CLASS Widget_Keypad;