Fl_Int_Input.H 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // "$Id: Fl_Int_Input.H 9637 2012-07-24 04:37:22Z matt $"
  3. //
  4. // Integer 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. /* \file
  19. Fl_Int_Input widget . */
  20. #ifndef Fl_Int_Input_H
  21. #define Fl_Int_Input_H
  22. #include "Fl_Input.H"
  23. /**
  24. The Fl_Int_Input class is a subclass of Fl_Input that only allows
  25. the user to type decimal digits (or hex numbers of the form 0xaef).
  26. */
  27. class FL_EXPORT Fl_Int_Input : public Fl_Input {
  28. public:
  29. /**
  30. Creates a new Fl_Int_Input widget using the given position,
  31. size, and label string. The default boxtype is FL_DOWN_BOX.
  32. Inherited destructor destroys the widget and any value associated with it.
  33. */
  34. Fl_Int_Input(int X,int Y,int W,int H,const char *l = 0);
  35. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Int_Input, Fl_Input)
  36. };
  37. class FL_EXPORT Fl_Int_Input_Fmt : public Fl_Int_Input {
  38. public:
  39. Fl_Int_Input_Fmt(int X,int Y,int W,int H,const char *l = 0)
  40. : Fl_Int_Input(X,Y,W,H,l) {use_numeric_format(1);}
  41. };
  42. #endif
  43. //
  44. // End of "$Id: Fl_Int_Input.H 9637 2012-07-24 04:37:22Z matt $".
  45. //