ekg2  GIT master
mouse.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2004 Piotr Kupisiewicz <deli@rzepaknet.us>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License Version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef __EKG_NCURSES_MOUSE_H
21 #define __EKG_NCURSES_MOUSE_H
22 
23 void ncurses_enable_mouse(const char *env);
24 void ncurses_disable_mouse(void);
25 void ncurses_mouse_clicked_handler(int x, int y, int mouse_flag);
26 void ncurses_lastlog_mouse_handler(int x, int y, int mouse_state);
27 
28 // int last_mouse_state;
29 
30 #define EKG_BUTTON1_CLICKED 0x0001
31 #define EKG_BUTTON2_CLICKED 0x0007
32 #define EKG_BUTTON3_CLICKED 0x0008
33 #define EKG_UNKNOWN_CLICKED 0x0006
34 #define EKG_BUTTON1_DOUBLE_CLICKED 0x0002
35 #define EKG_BUTTON2_DOUBLE_CLICKED 0x0009
36 #define EKG_BUTTON3_DOUBLE_CLICKED 0x0010
37 #define EKG_UNKNOWN_DOUBLE_CLICKED 0x0005
38 #define EKG_SCROLLED_UP 0x0003
39 #define EKG_SCROLLED_DOWN 0x0004
40 
41 extern int mouse_initialized;
42 
43 #endif /* __EKG_NCURSES_MOUSE_H */
44 
45 
46 /*
47  * Local Variables:
48  * mode: c
49  * c-file-style: "k&r"
50  * c-basic-offset: 8
51  * indent-tabs-mode: t
52  * End:
53  */
void ncurses_enable_mouse(const char *env)
Definition: mouse.c:343
void ncurses_lastlog_mouse_handler(int x, int y, int mouse_state)
Definition: mouse.c:94
void ncurses_disable_mouse(void)
Definition: mouse.c:385
int mouse_initialized
Definition: mouse.c:44
void ncurses_mouse_clicked_handler(int x, int y, int mouse_flag)
Definition: mouse.c:127