A Knob widget for FLTK

Updated July 20th 2001


Fl_Knob is a widget attempting to provide a "reallistic" rendering of a potentiometer knob. It displays shiny hilites and casts a shadow...
It inherits from the Fl_Valuator class and offers the following features :

The type of the knob is set with the method type(int ty) where ty can be : The number of scale ticks can be set with the method scaleticks(const int tick)
where tick is an integer from 0 to 31. This is only operating for knob types
Fl_Knob::DOTLIN and Fl_Knob::LINELIN

The size of the cursor is set with the method cursor(const int pc) where pc is an integer from 0 to 100. pc is the percentage of the knob radius occupied by the cursor.


A snapshot example :

This widget is based on the fltk library

Download current source

Some other widgets of mine.

Who am I ?



Fl_Knob is Copyright 2000 by Yves Usson. Fl_Knob is provided under the terms of the GNU General Public License and GNU Library General Public License.