23#include <FL/Fl_Valuator.H>
34 double _ymin, _ymax, _xmin, _xmax;
39 double _ysize, _xsize;
43 virtual void draw_cursor (
int X,
int Y,
int W,
int H );
45 virtual void draw_background (
int X,
int Y,
int W,
int H );
46 virtual void draw (
int X,
int Y,
int W,
int H );
47 virtual int handle (
int m,
int X,
int Y,
int W,
int H );
48 void cursor_bounds (
int &cx,
int &cy,
int &cw,
int &ch )
const;
52 virtual void draw (
void );
53 virtual int handle (
int m );
55 Fl_Panzoomer (
int X,
int Y,
int W,
int H,
const char *L=0 );
56 virtual ~Fl_Panzoomer ( ) { }
61 int x_value (
int pos,
int size,
int first,
int total );
62 int y_value (
int pos,
int size,
int first,
int total );
64 double x_value (
void )
const {
return _xpos; }
65 double y_value (
void )
const {
return _ypos; }
66 void x_value (
double v );
67 void y_value (
double v );
70 bool zoom_changed (
void )
const {
return _zoom_changed; }
71 double zoom (
void )
const {
return _zoom; }
74 void zoom_range (
int zmin,
int zmax ) { _zoom_min = zmin; _zoom_max = zmax; }
76 void zoom_in (
void ) {
int z = _zoom; zoom( _zoom - 1 );
if ( z != _zoom )
do_callback(); }
77 void zoom_out (
void ) {
int z = _zoom; zoom( _zoom + 1 );
if ( z != _zoom )
do_callback(); }
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:37