FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_File_Input.H
1 //
2 // "$Id: Fl_File_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // File_Input header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 // Original version Copyright 1998 by Curtis Edwards.
8 //
9 // This library is free software. Distribution and use rights are outlined in
10 // the file "COPYING" which should have been included with this file. If this
11 // file is missing or damaged, see the license at:
12 //
13 // http://www.fltk.org/COPYING.php
14 //
15 // Please report all bugs and problems on the following page:
16 //
17 // http://www.fltk.org/str.php
18 //
19
20 /* \file
21 Fl_File_Input widget . */
22
23 #ifndef Fl_File_Input_H
24 # define Fl_File_Input_H
25
26 # include <FL/Fl_Input.H>
27
47 class FL_EXPORT Fl_File_Input : public Fl_Input {
48
49 Fl_Color errorcolor_;
50 char ok_entry_;
51 uchar down_box_;
52 short buttons_[200];
53 short pressed_;
54
55 void draw_buttons();
56 int handle_button(int event);
57 void update_buttons();
58
59 public:
60
61 Fl_File_Input(int X, int Y, int W, int H, const char *L=0);
62
63 virtual int handle(int event);
64
65 protected:
66 virtual void draw();
67
68 public:
70 Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
72 void down_box(Fl_Boxtype b) { down_box_ = b; }
73
78 Fl_Color errorcolor() const { return errorcolor_; }
80 void errorcolor(Fl_Color c) { errorcolor_ = c; }
81
82 int value(const char *str);
83 int value(const char *str, int len);
84
89 const char *value() { return Fl_Input_::value(); }
90 };
91
92 #endif // !Fl_File_Input_H
93
94
95 //
96 // End of "$Id: Fl_File_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
97 //
Fl_File_Input::value
const char * value()
Returns the current value, which is a pointer to an internal buffer and is valid only until the next ...
Definition: Fl_File_Input.H:89
Fl_Boxtype
Fl_Boxtype
Definition: Enumerations.H:469
Fl_Input
This is the FLTK text input widget.
Definition: Fl_Input.H:221
Fl_File_Input
This widget displays a pathname in a text input field.
Definition: Fl_File_Input.H:47
Fl_File_Input::errorcolor
void errorcolor(Fl_Color c)
Sets the current error color to c.
Definition: Fl_File_Input.H:80
Fl_Input_::value
const char * value() const
Returns the text displayed in the widget.
Definition: Fl_Input_.H:244
Fl_Color
unsigned int Fl_Color
an FLTK color value
Definition: Enumerations.H:774
Fl_File_Input::errorcolor
Fl_Color errorcolor() const
Gets the current error color.
Definition: Fl_File_Input.H:78
Fl_Input::draw
void draw()
Draws the widget.
Definition: Fl_Input.cxx:46
Fl_File_Input::down_box
Fl_Boxtype down_box() const
Gets the box type used for the navigation bar.
Definition: Fl_File_Input.H:70
Fl_File_Input::down_box
void down_box(Fl_Boxtype b)
Sets the box type to use for the navigation bar.
Definition: Fl_File_Input.H:72
Fl_Input::handle
int handle(int)
Handles the specified event.
Definition: Fl_Input.cxx:584
uchar
unsigned char uchar
unsigned char
Definition: fl_types.h:30
- © 1998-2012 by Bill Spitzak and others.