FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
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::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_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:162
Fl_Valuator::value_damage
virtual void value_damage()
Asks for partial redraw.
Definition
Fl_Valuator.cxx:70
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:28
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
FL
Fl_Adjuster.H
Generated by
1.17.0