FLTK 1.3.2

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

- File List
- File Members

Fl_File_Input.H

    00001 //
    00002 // "$Id: Fl_File_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
    00003 //
    00004 // File_Input header file for the Fast Light Tool Kit (FLTK).
    00005 //
    00006 // Copyright 1998-2010 by Bill Spitzak and others.
    00007 // Original version Copyright 1998 by Curtis Edwards.
    00008 //
    00009 // This library is free software. Distribution and use rights are outlined in
    00010 // the file "COPYING" which should have been included with this file.  If this
    00011 // file is missing or damaged, see the license at:
    00012 //
    00013 //     http://www.fltk.org/COPYING.php
    00014 //
    00015 // Please report all bugs and problems on the following page:
    00016 //
    00017 //     http://www.fltk.org/str.php
    00018 //
    00019
    00020 /* \file
    00021    Fl_File_Input widget . */
    00022
    00023 #ifndef Fl_File_Input_H
    00024 #  define Fl_File_Input_H
    00025
    00026 #  include <FL/Fl_Input.H>
    00027
    00047 class FL_EXPORT Fl_File_Input : public Fl_Input {
    00048
    00049   Fl_Color      errorcolor_;
    00050   char          ok_entry_;
    00051   uchar         down_box_;
    00052   short         buttons_[200];
    00053   short         pressed_;
    00054
    00055   void          draw_buttons();
    00056   int           handle_button(int event);
    00057   void          update_buttons();
    00058
    00059 public:
    00060
    00061   Fl_File_Input(int X, int Y, int W, int H, const char *L=0);
    00062
    00063   virtual int handle(int event);
    00064
    00065 protected:
    00066   virtual void draw();
    00067
    00068 public:
    00070   Fl_Boxtype    down_box() const { return (Fl_Boxtype)down_box_; }
    00072   void          down_box(Fl_Boxtype b) { down_box_ = b; }
    00073
    00078   Fl_Color      errorcolor() const { return errorcolor_; }
    00080   void          errorcolor(Fl_Color c) { errorcolor_ = c; }
    00081
    00082   int   value(const char *str);
    00083   int   value(const char *str, int len);
    00084
    00089   const char    *value() { return Fl_Input_::value(); }
    00090 };
    00091
    00092 #endif // !Fl_File_Input_H
    00093
    00094
    00095 //
    00096 // End of "$Id: Fl_File_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
    00097 //