FLTK 1.3.2
|
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. Distribution and use rights are outlined in 00009 // the file "COPYING" which should have been included with this file. If this 00010 // file is missing or damaged, see the license at: 00011 // 00012 // http://www.fltk.org/COPYING.php 00013 // 00014 // Please report all bugs and problems on the following page: 00015 // 00016 // http://www.fltk.org/str.php 00017 // 00018 00019 /* \file 00020 Fl_Input widget . */ 00021 00022 #ifndef Fl_Input_H 00023 #define Fl_Input_H 00024 00025 #include "Fl_Input_.H" 00026 00221 class FL_EXPORT Fl_Input : public Fl_Input_ { 00222 int handle_key(); 00223 int shift_position(int p); 00224 int shift_up_down_position(int p); 00225 void handle_mouse(int keepmark=0); 00226 00227 // Private keyboard functions 00228 int kf_lines_up(int repeat_num); 00229 int kf_lines_down(int repeat_num); 00230 int kf_page_up(); 00231 int kf_page_down(); 00232 int kf_insert_toggle(); 00233 int kf_delete_word_right(); 00234 int kf_delete_word_left(); 00235 int kf_delete_sol(); 00236 int kf_delete_eol(); 00237 int kf_delete_char_right(); 00238 int kf_delete_char_left(); 00239 int kf_move_sol(); 00240 int kf_move_eol(); 00241 int kf_clear_eol(); 00242 int kf_move_char_left(); 00243 int kf_move_char_right(); 00244 int kf_move_word_left(); 00245 int kf_move_word_right(); 00246 int kf_move_up_and_sol(); 00247 int kf_move_down_and_eol(); 00248 int kf_top(); 00249 int kf_bottom(); 00250 int kf_select_all(); 00251 int kf_undo(); 00252 int kf_redo(); 00253 int kf_copy(); 00254 int kf_paste(); 00255 int kf_copy_cut(); 00256 00257 protected: 00258 void draw(); 00259 public: 00260 int handle(int); 00261 Fl_Input(int,int,int,int,const char * = 0); 00262 }; 00263 00264 #endif 00265 00266 // 00267 // End of "$Id$". 00268 //