Generic pedal drawing area. More...
#include <manager_gui.h>
Public Member Functions | |
PedalDrawingArea (std::string title=std::string("NOT_SET"), double min_value=0, double max_value=100) | |
Class constructor. | |
void | setValue (double value) |
Set the current pedal value. | |
virtual | ~PedalDrawingArea () |
Class destructor. | |
Protected Member Functions | |
virtual bool | on_draw (const Cairo::RefPtr< Cairo::Context > &cr) |
Protected Attributes | |
double | max_value_ |
double | min_value_ |
std::string | title_ |
double | value_ |
double | zoom_ |
Generic pedal drawing area.
This class represent the position of a generic pedal using a fill bar. This class inherits the ExtendedDrawingArea class.
Definition at line 996 of file manager_gui.h.
PedalDrawingArea::PedalDrawingArea | ( | std::string | title = std::string("NOT_SET") , |
|
double | min_value = 0 , |
|||
double | max_value = 100 | |||
) | [inline] |
Class constructor.
title | title of the pedal | |
min_value | minimum value of the pedal | |
max_value | maximum value of the pedal |
Initializes variables, widget size and background color.
Definition at line 1008 of file manager_gui.h.
virtual PedalDrawingArea::~PedalDrawingArea | ( | ) | [inline, virtual] |
virtual bool PedalDrawingArea::on_draw | ( | const Cairo::RefPtr< Cairo::Context > & | cr | ) | [inline, protected, virtual] |
Definition at line 1049 of file manager_gui.h.
void PedalDrawingArea::setValue | ( | double | value | ) | [inline] |
Set the current pedal value.
value | the new pedal value |
Definition at line 1032 of file manager_gui.h.
double PedalDrawingArea::max_value_ [protected] |
Definition at line 1120 of file manager_gui.h.
double PedalDrawingArea::min_value_ [protected] |
Definition at line 1119 of file manager_gui.h.
std::string PedalDrawingArea::title_ [protected] |
Definition at line 1116 of file manager_gui.h.
double PedalDrawingArea::value_ [protected] |
Definition at line 1118 of file manager_gui.h.
double PedalDrawingArea::zoom_ [protected] |
Definition at line 1117 of file manager_gui.h.