source: NonGTP/glut/FLTK/include/FL/Fl_Input.H @ 814

Revision 814, 770 bytes checked in by gumbau, 18 years ago (diff)

Glut initial import used by Geometry modules

Line 
1#ifndef Fl_Input_H
2#define Fl_Input_H
3
4#include "Fl_Widget.H"
5#include <fltk/Input.h>
6class Fl_Input : public fltk::Input {
7public:
8  Fl_Input(int x, int y, int w, int h, const char* l=0) : fltk::Input(x,y,w,h,l) {}
9  int wrap() const { return type() == fltk::Input::WORDWRAP; }
10  void wrap(int b) { type(b ? fltk::Input::WORDWRAP : fltk::Input::MULTILINE);}
11};
12
13enum {
14  FL_NORMAL_INPUT       = fltk::Input::NORMAL,
15  FL_FLOAT_INPUT        = 1, // probably needs the IntInput subclass!
16  FL_INT_INPUT          = 2,
17//FL_HIDDEN_INPUT       // not in fltk2.0
18  FL_MULTILINE_INPUT    = fltk::Input::MULTILINE,
19  FL_SECRET_INPUT       = fltk::Input::SECRET,
20//FL_INPUT_TYPE         = 7,
21//FL_INPUT_READONLY     = 8,
22  FL_INPUT_WRAP         = fltk::Input::WORDWRAP,
23  FL_MULTILINE_INPUT_WRAP = fltk::Input::WORDWRAP
24};
25
26#endif
27
Note: See TracBrowser for help on using the repository browser.