~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/include/ValueSlider.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//======================================================================
2
 
// clase wheel_slider - based on Fl_Slider
3
 
// class wheel_value_slider - based on Fl_Value_Slider
4
 
//======================================================================
5
 
 
6
 
#include <FL/Fl_Slider.H>
7
 
#include <FL/Fl_Value_Slider.H>
8
 
 
9
 
class Fl_Wheel_Slider : public Fl_Slider
10
 
{
11
 
private:
12
 
        bool reverse_;
13
 
public:
14
 
        Fl_Wheel_Slider(int x, int y, int w, int h, const char *label = 0)
15
 
                : Fl_Slider(x, y, w, h, label), reverse_(false) { }
16
 
        int handle(int event);
17
 
        void reverse(bool rev) { reverse_ = rev;}
18
 
        bool reverse() { return reverse_;}
19
 
};
20
 
 
21
 
class Fl_Wheel_Value_Slider : public Fl_Value_Slider
22
 
{
23
 
private:
24
 
        bool reverse_;
25
 
public:
26
 
        Fl_Wheel_Value_Slider(int x, int y, int w, int h, const char *label = 0)
27
 
                : Fl_Value_Slider(x, y, w, h, label), reverse_(false) { }
28
 
        int handle(int event);
29
 
        void reverse(bool rev) { reverse_ = rev;}
30
 
        bool reverse() { return reverse_;}
31
 
};