FLTK 1.3.8

Fl_Input.H
1//
2// "$Id$"
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
222 class FL_EXPORT Fl_Input : public Fl_Input_ {
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
266
267//
268// End of "$Id$".
269//
Fl_Input_
This class provides a low-overhead text input field.
Definition: Fl_Input_.H:94
Fl_Input_::handle_mouse
void handle_mouse(int, int, int, int, int keepmark=0)
Handles mouse clicks and mouse moves.
Definition: Fl_Input_.cxx:542
Fl_Input
This is the FLTK text input widget.
Definition: Fl_Input.H:222
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:112
- Copyright © 1998-2021 by Bill Spitzak and others.