fltk::Adjuster Class Reference

#include <Adjuster.h>

Inherits fltk::Valuator.

List of all members.

Public Member Functions

int handle (int)

Protected Member Functions

void draw ()
void value_damage ()

Detailed Description

This valuator is provided for back-compatability ONLY. This may be removed before the final version! 3-button "slider", made for Nuke

Valuator widget that displays three buttons. The user pushes down the button and drags left/right to adjust, or clicks the button to step, or shift-clicks to step backwards. One button moves in the step() values, the next in 10*step(), and the third in 100*step(). Holding down shift makes the buttons move in the opposite way. Depreciated.


Member Function Documentation

void Adjuster::draw ( void  ) [protected, virtual]

Fltk calls this virtual function to draw the widget, after setting up the graphics (current window, xy translation, etc) so that any drawing functions will go into this widget.

User code should not call this! You probably want to call redraw().

The default version calls draw_box() and draw_label(), thus drawing the box() to fill the widget and putting the label() and image() inside it to fill it, unless the align() flags are set to put it outside.

Information on how to write your own version is here.

Reimplemented from fltk::Widget.

int Adjuster::handle ( int  event) [virtual]

The base class handle() accepts FOCUS and recognizes a number of keystrokes that adjust the value. A subclass can call this to get these keystrokes, it can also do it's own keystroke handling if it wants.

Reimplemented from fltk::Valuator.

void Adjuster::value_damage ( ) [protected, virtual]

Subclasses must implement this. It is called whenever the value() changes. They must call redraw() if necessary.

Reimplemented from fltk::Valuator.

The documentation for this class was generated from the following files: