FLTK 1.4.4: Fl_Adjuster.H Source File

FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_Adjuster.H
1//
2// Adjuster widget header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2010 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17/* \file
18 Fl_Adjuster widget . */
19
20// 3-button "slider", made for Nuke
21
22#ifndef Fl_Adjuster_H
23#define Fl_Adjuster_H
24
25#ifndef Fl_Valuator_H
26#include "Fl_Valuator.H"
27#endif
28
41 class FL_EXPORT Fl_Adjuster : public Fl_Valuator {
42 int drag;
43 int ix;
44 int soft_;
45protected:
46 void draw() FL_OVERRIDE;
47 int handle(int) FL_OVERRIDE;
48 void value_damage() FL_OVERRIDE;
49public:
50 Fl_Adjuster(int X,int Y,int W,int H,const char *l=0);
57 void soft(int s) {soft_ = s;}
64 int soft() const {return soft_;}
65};
66
67#endif
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:57
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:64
Fl_Adjuster::Fl_Adjuster
Fl_Adjuster(int X, int Y, int W, int H, const char *l=0)
Creates a new Fl_Adjuster widget using the given position, size, and label string.
Definition Fl_Adjuster.cxx:160
Fl_Valuator::value_damage
virtual void value_damage()
Asks for partial redraw.
Definition Fl_Valuator.cxx:68
Fl_Valuator::Fl_Valuator
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:26
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:102
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46