FLTK
Fl_Input.H
1 //
2 // Input header file for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2010 by Bill Spitzak and others.
5 //
6 // This library is free software. Distribution and use rights are outlined in
7 // the file "COPYING" which should have been included with this file. If this
8 // file is missing or damaged, see the license at:
9 //
10 // https://www.fltk.org/COPYING.php
11 //
12 // Please see the following page on how to report bugs and issues:
13 //
14 // https://www.fltk.org/bugs.php
15 //
16 
17 /* \file
18  Fl_Input widget . */
19 
20 #ifndef Fl_Input_H
21 #define Fl_Input_H
22 
23 #include "Fl_Input_.H"
24 
220 class FL_EXPORT Fl_Input : public Fl_Input_ {
221  friend class Fl_Screen_Driver;
222  friend class Fl_Cocoa_Screen_Driver; // Not ideal, but probably no other platform will use it
223  int handle_key();
224  int shift_position(int p);
225  int shift_up_down_position(int p);
226  void handle_mouse(int keepmark=0);
227 
228  // Private keyboard functions
229  int kf_lines_up(int repeat_num);
230  int kf_lines_down(int repeat_num);
231  int kf_page_up();
232  int kf_page_down();
233  int kf_insert_toggle();
234  int kf_delete_word_right();
235  int kf_delete_word_left();
236  int kf_delete_sol();
237  int kf_delete_eol();
238  int kf_delete_char_right();
239  int kf_delete_char_left();
240  int kf_move_sol();
241  int kf_move_eol();
242  int kf_clear_eol();
243  int kf_move_char_left();
244  int kf_move_char_right();
245  int kf_move_word_left();
246  int kf_move_word_right();
247  int kf_move_up_and_sol();
248  int kf_move_down_and_eol();
249  int kf_top();
250  int kf_bottom();
251  int kf_select_all();
252  int kf_undo();
253  int kf_redo();
254  int kf_copy();
255  int kf_paste();
256  int kf_copy_cut();
257 
258 protected:
259  void draw();
260 public:
261  int handle(int);
262  Fl_Input(int,int,int,int,const char * = 0);
263 };
264 
265 #endif
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:102
virtual void draw()=0
Draws the widget.
This is the FLTK text input widget.
Definition: Fl_Input.H:220
void handle_mouse(int, int, int, int, int keepmark=0)
Handles mouse clicks and mouse moves.
Definition: Fl_Input_.cxx:528
This class provides a low-overhead text input field.
Definition: Fl_Input_.H:93