31#define FL_HORIZONTAL           1  
   52  double previous_value_;
 
   59  Fl_Valuator(
int X, 
int Y, 
int W, 
int H, 
const char* L);
 
   65  double softclamp(
double);
 
   66  void handle_drag(
double newvalue);
 
   67  void handle_release(); 
 
   68  virtual void value_damage(); 
 
   75    void bounds(
double a, 
double b) {min=a; max=b;}
 
  104  void range(
double a, 
double b) {min = a; max = b;}
 
  106  void step(
int a) {A = a; B = 1;}
 
  108  void step(
double a, 
int b) {A = a; B = b;}
 
  121  double step()
 const {
return A/B;}
 
  122  void precision(
int digits);
 
  125  double value()
 const {
return value_;}
 
  128  virtual int format(
char*);
 
  129  double round(
double); 
 
  130  double clamp(
double); 
 
  131  double increment(
double, 
int); 
 
 
The Fl_Valuator class controls a single floating-point value and provides a consistent interface to s...
Definition Fl_Valuator.H:49
double step() const
Gets or sets the step value.
Definition Fl_Valuator.H:121
double value() const
Gets the floating point(double) value.
Definition Fl_Valuator.H:125
void set_value(double v)
Sets the current floating point value.
Definition Fl_Valuator.H:70
void step(int a)
See double Fl_Valuator::step() const.
Definition Fl_Valuator.H:106
Fl_Valuator(int X, int Y, int W, int H, const char *L)
Creates a new Fl_Valuator widget using the given position, size, and label string.
Definition Fl_Valuator.cxx:28
double minimum() const
Gets the minimum value for the valuator.
Definition Fl_Valuator.H:77
void range(double a, double b)
Sets the minimum and maximum values for the valuator.
Definition Fl_Valuator.H:104
void handle_push()
Stores the current value in the previous value.
Definition Fl_Valuator.H:64
double previous_value() const
Gets the previous floating point value before an event changed it.
Definition Fl_Valuator.H:62
double maximum() const
Gets the maximum value for the valuator.
Definition Fl_Valuator.H:81
void minimum(double a)
Sets the minimum value for the valuator.
Definition Fl_Valuator.H:79
void maximum(double a)
Sets the maximum value for the valuator.
Definition Fl_Valuator.H:83
void bounds(double a, double b)
Sets the minimum (a) and maximum (b) values for the valuator widget.
Definition Fl_Valuator.H:75
void step(double a, int b)
See double Fl_Valuator::step() const.
Definition Fl_Valuator.H:108
int horizontal() const
Tells if the valuator is an FL_HORIZONTAL one.
Definition Fl_Valuator.H:58