FLTK 1.3.0
|
00001 // 00002 // "$Id$" 00003 // 00004 // Input header file for the Fast Light Tool Kit (FLTK). 00005 // 00006 // Copyright 1998-2010 by Bill Spitzak and others. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00021 // USA. 00022 // 00023 // Please report all bugs and problems on the following page: 00024 // 00025 // http://www.fltk.org/str.php 00026 // 00027 00028 /* \file 00029 Fl_Input widget . */ 00030 00031 #ifndef Fl_Input_H 00032 #define Fl_Input_H 00033 00034 #include "Fl_Input_.H" 00035 00230 class FL_EXPORT Fl_Input : public Fl_Input_ { 00231 int handle_key(); 00232 int shift_position(int p); 00233 int shift_up_down_position(int p); 00234 void handle_mouse(int keepmark=0); 00235 00236 // Private keyboard functions 00237 int kf_lines_up(int repeat_num); 00238 int kf_lines_down(int repeat_num); 00239 int kf_page_up(); 00240 int kf_page_down(); 00241 int kf_insert_toggle(); 00242 int kf_delete_word_right(); 00243 int kf_delete_word_left(); 00244 int kf_delete_sol(); 00245 int kf_delete_eol(); 00246 int kf_delete_char_right(); 00247 int kf_delete_char_left(); 00248 int kf_move_sol(); 00249 int kf_move_eol(); 00250 int kf_clear_eol(); 00251 int kf_move_char_left(); 00252 int kf_move_char_right(); 00253 int kf_move_word_left(); 00254 int kf_move_word_right(); 00255 int kf_move_up_and_sol(); 00256 int kf_move_down_and_eol(); 00257 int kf_top(); 00258 int kf_bottom(); 00259 int kf_select_all(); 00260 int kf_undo(); 00261 int kf_redo(); 00262 int kf_copy(); 00263 int kf_paste(); 00264 int kf_copy_cut(); 00265 00266 protected: 00267 void draw(); 00268 public: 00269 int handle(int); 00270 Fl_Input(int,int,int,int,const char * = 0); 00271 }; 00272 00273 #endif 00274 00275 // 00276 // End of "$Id$". 00277 //