NTK 1.3.0
Fl_Input.H
1//
2// "$Id: Fl_Input.H 8111 2010-12-23 08:13:18Z manolo $"
3//
4// Input header file for the Fast Light Tool Kit (FLTK).
5//
6// Copyright 1998-2010 by Bill Spitzak and others.
7//
8// This library is free software; you can redistribute it and/or
9// modify it under the terms of the GNU Library General Public
10// License as published by the Free Software Foundation; either
11// version 2 of the License, or (at your option) any later version.
12//
13// This library is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16// Library General Public License for more details.
17//
18// You should have received a copy of the GNU Library General Public
19// License along with this library; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21// USA.
22//
23// Please report all bugs and problems on the following page:
24//
25// http://www.fltk.org/str.php
26//
27
28/* \file
29 Fl_Input widget . */
30
31#ifndef Fl_Input_H
32#define Fl_Input_H
33
34#include "Fl_Input_.H"
35
230class FL_EXPORT Fl_Input : public Fl_Input_ {
231 int handle_key();
232 int shift_position(int p);
233 int shift_up_down_position(int p);
234 void handle_mouse(int keepmark=0);
235
236 // Private keyboard functions
237 int kf_lines_up(int repeat_num);
238 int kf_lines_down(int repeat_num);
239 int kf_page_up();
240 int kf_page_down();
241 int kf_insert_toggle();
242 int kf_delete_word_right();
243 int kf_delete_word_left();
244 int kf_delete_sol();
245 int kf_delete_eol();
246 int kf_delete_char_right();
247 int kf_delete_char_left();
248 int kf_move_sol();
249 int kf_move_eol();
250 int kf_clear_eol();
251 int kf_move_char_left();
252 int kf_move_char_right();
253 int kf_move_word_left();
254 int kf_move_word_right();
255 int kf_move_up_and_sol();
256 int kf_move_down_and_eol();
257 int kf_top();
258 int kf_bottom();
259 int kf_select_all();
260 int kf_undo();
261 int kf_redo();
262 int kf_copy();
263 int kf_paste();
264 int kf_copy_cut();
265
266protected:
267 void draw();
268public:
269 int handle(int);
270 Fl_Input(int,int,int,int,const char * = 0);
271};
272
273#endif
274
275//
276// End of "$Id: Fl_Input.H 8111 2010-12-23 08:13:18Z manolo $".
277//
Fl_Input_(int, int, int, int, const char *=0)
Creates a new Fl_Input_ widget.
Definition Fl_Input_.cxx:1056
void handle_mouse(int, int, int, int, int keepmark=0)
Handles mouse clicks and mouse moves.
Definition Fl_Input_.cxx:511
Fl_Input(int, int, int, int, const char *=0)
Creates a new Fl_Input widget using the given position, size, and label string.
Definition Fl_Input.cxx:771
virtual void draw()=0
Draws the widget.
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:106