ekg2
|
00001 /* $Id$ */ 00002 00003 /* 00004 * (C) Copyright 2004 Piotr Kupisiewicz <deli@rzepaknet.us> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License Version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __EKG_NCURSES_MOUSE_H 00021 #define __EKG_NCURSES_MOUSE_H 00022 00023 void ncurses_enable_mouse(const char *env); 00024 void ncurses_disable_mouse(void); 00025 void ncurses_mouse_clicked_handler(int x, int y, int mouse_flag); 00026 void ncurses_lastlog_mouse_handler(int x, int y, int mouse_state); 00027 00028 // int last_mouse_state; 00029 00030 #define EKG_BUTTON1_CLICKED 0x0001 00031 #define EKG_BUTTON2_CLICKED 0x0007 00032 #define EKG_BUTTON3_CLICKED 0x0008 00033 #define EKG_UNKNOWN_CLICKED 0x0006 00034 #define EKG_BUTTON1_DOUBLE_CLICKED 0x0002 00035 #define EKG_BUTTON2_DOUBLE_CLICKED 0x0009 00036 #define EKG_BUTTON3_DOUBLE_CLICKED 0x0010 00037 #define EKG_UNKNOWN_DOUBLE_CLICKED 0x0005 00038 #define EKG_SCROLLED_UP 0x0003 00039 #define EKG_SCROLLED_DOWN 0x0004 00040 00041 extern int mouse_initialized; 00042 00043 #endif /* __EKG_NCURSES_MOUSE_H */ 00044 00045 00046 /* 00047 * Local Variables: 00048 * mode: c 00049 * c-file-style: "k&r" 00050 * c-basic-offset: 8 00051 * indent-tabs-mode: t 00052 * End: 00053 */