FLTK 1.3.4
Fl_Input.H
1//
2// "$Id: Fl_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
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. Distribution and use rights are outlined in
9// the file "COPYING" which should have been included with this file. If this
10// file is missing or damaged, see the license at:
11//
12// http://www.fltk.org/COPYING.php
13//
14// Please report all bugs and problems on the following page:
15//
16// http://www.fltk.org/str.php
17//
18
19/* \file
20 Fl_Input widget . */
21
22#ifndef Fl_Input_H
23#define Fl_Input_H
24
25#include "Fl_Input_.H"
26
221class FL_EXPORT Fl_Input : public Fl_Input_ {
222 int handle_key();
223 int shift_position(int p);
224 int shift_up_down_position(int p);
225 void handle_mouse(int keepmark=0);
226
227 // Private keyboard functions
228 int kf_lines_up(int repeat_num);
229 int kf_lines_down(int repeat_num);
230 int kf_page_up();
231 int kf_page_down();
232 int kf_insert_toggle();
233 int kf_delete_word_right();
234 int kf_delete_word_left();
235 int kf_delete_sol();
236 int kf_delete_eol();
237 int kf_delete_char_right();
238 int kf_delete_char_left();
239 int kf_move_sol();
240 int kf_move_eol();
241 int kf_clear_eol();
242 int kf_move_char_left();
243 int kf_move_char_right();
244 int kf_move_word_left();
245 int kf_move_word_right();
246 int kf_move_up_and_sol();
247 int kf_move_down_and_eol();
248 int kf_top();
249 int kf_bottom();
250 int kf_select_all();
251 int kf_undo();
252 int kf_redo();
253 int kf_copy();
254 int kf_paste();
255 int kf_copy_cut();
256
257protected:
258 void draw();
259public:
260 int handle(int);
261 Fl_Input(int,int,int,int,const char * = 0);
262};
263
264#endif
265
266//
267// End of "$Id: Fl_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
268//
This class provides a low-overhead text input field.
Definition Fl_Input_.H:94
void handle_mouse(int, int, int, int, int keepmark=0)
Handles mouse clicks and mouse moves.
Definition Fl_Input_.cxx:542
This is the FLTK text input widget.
Definition Fl_Input.H:221
virtual void draw()=0
Draws the widget.
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:112