FLTK 1.3.9
Loading...
Searching...
No Matches
Fl_File_Input.H
1//
2// "$Id$"
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
47class 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
59public:
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
65protected:
66 virtual void draw();
67
68public:
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$".
97//
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:932
Fl_Boxtype
Definition Enumerations.H:601
This widget displays a pathname in a text input field.
Definition Fl_File_Input.H:47
void down_box(Fl_Boxtype b)
Sets the box type to use for the navigation bar.
Definition Fl_File_Input.H:72
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
void errorcolor(Fl_Color c)
Sets the current error color to c.
Definition Fl_File_Input.H:80
Fl_Color errorcolor() const
Gets the current error color.
Definition Fl_File_Input.H:78
Fl_Boxtype down_box() const
Gets the box type used for the navigation bar.
Definition Fl_File_Input.H:70
const char * value() const
Returns the text displayed in the widget.
Definition Fl_Input_.H:244
This is the FLTK text input widget.
Definition Fl_Input.H:222
void draw()
Draws the widget.
Definition Fl_Input.cxx:46
int handle(int)
Handles the specified event.
Definition Fl_Input.cxx:589
unsigned char uchar
unsigned char
Definition fl_types.h:30