summaryrefslogtreecommitdiff
path: root/FL/Fl_Adjuster.H
blob: df4a2cdd1058308552472bd1eadd5fc604109947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Fl_Adjuster.H

// 3-button "slider", made for Nuke

#ifndef Fl_Adjuster_H
#define Fl_Adjuster_H

#ifndef Fl_Valuator_H
#include "Fl_Valuator.H"
#endif

class Fl_Adjuster : public Fl_Valuator {
  int drag;
  int ix;
  int soft_;
protected:
  void draw();
  int handle(int);
  void value_damage();
public:
  Fl_Adjuster(int x,int y,int w,int h,const char *l=0);
  void soft(int x) {soft_ = x;}
  int soft() const {return soft_;}
};

#endif