FLTK 1.3.8

Fl_Adjuster.H
1//
2// "$Id$"
3//
4// Adjuster widget 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
19/* \file
20 Fl_Adjuster widget . */
21
22// 3-button "slider", made for Nuke
23
24#ifndef Fl_Adjuster_H
25#define Fl_Adjuster_H
26
27#ifndef Fl_Valuator_H
28#include "Fl_Valuator.H"
29#endif
30
43 class FL_EXPORT Fl_Adjuster : public Fl_Valuator {
44 int drag;
45 int ix;
46 int soft_;
47 protected:
48 void draw();
49 int handle(int);
50 void value_damage();
51 public:
52 Fl_Adjuster(int X,int Y,int W,int H,const char *l=0);
59 void soft(int s) {soft_ = s;}
66 int soft() const {return soft_;}
67};
68
69#endif
70
71//
72// End of "$Id$".
73//
Fl_Adjuster
The Fl_Adjuster widget was stolen from Prisms, and has proven to be very useful for values that need ...
Definition: Fl_Adjuster.H:43
Fl_Adjuster::soft
void soft(int s)
If "soft" is turned on, the user is allowed to drag the value outside the range.
Definition: Fl_Adjuster.H:59
Fl_Adjuster::soft
int soft() const
If "soft" is turned on, the user is allowed to drag the value outside the range.
Definition: Fl_Adjuster.H:66
Fl_Valuator
The Fl_Valuator class controls a single floating-point value and provides a consistent interface to s...
Definition: Fl_Valuator.H:49
Fl_Valuator::value_damage
virtual void value_damage()
Asks for partial redraw.
Definition: Fl_Valuator.cxx:70
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:112
- Copyright © 1998-2021 by Bill Spitzak and others.