#include <UScale.h>

Открытые члены | |
| Scale (Gtk::PositionType p, ScaleLabels *labels=0) | |
| void | set_position (Gtk::PositionType p) |
| Gtk::PositionType | position () const |
| Return where the scale is positioned. | |
| void | set_ticklengths (int major, int minor) |
| void | set_scale_color (Gdk::Color color) |
| int | major_ticklength () const |
| Return the major ticklength. | |
| int | minor_ticklength () const |
| Return the minor ticklength. | |
| ScaleLabels * | get_labels () |
| Return the labels of scale. | |
| void | set_enabled (bool b) |
| bool | enabled () const |
| Query if the scale is enabled (i.e. visible). | |
| void | set_max_major (int max) |
| void | set_max_minor (int max) |
| const PlotMM::DoubleIntMap & | scale_map () const |
| Query the ScaleMap used by this scale. | |
| void | set_range (double l, double r) |
| void | set_range (double l, double r, bool lg) |
| void | set_autoscale (bool b) |
| bool | autoscale () const |
| Query if autoscaling is enabled. | |
| void | begin_autoscale () |
| void | autoscale (double min, double max) |
| void | end_autoscale () |
Открытые атрибуты | |
| sigc::signal1< void, bool > | signal_enabled |
Защищенные члены | |
| virtual void | on_realize () |
| virtual bool | on_expose_event (GdkEventExpose *event) |
| virtual bool | on_map_event (GdkEvent *event) |
| virtual void | on_tick_change () |
| virtual void | redraw ()=0 |
Защищенные данные | |
| Glib::RefPtr< Gdk::Window > | window_ |
| ScaleLabels * | labels_ |
| Gdk::Color | scale_color |
| int | maxMaj |
| int | maxMin |
| bool | is_show |
| PlotMM::ScaleDiv | scaleDiv_ |
| PlotMM::DoubleIntMap | scaleMap_ |
| Scale::Scale | ( | Gtk::PositionType | p, | |
| ScaleLabels * | l = 0 | |||
| ) |
Constructor
Upon construction, the position for the Scale must be declared. Optionally, a reference to a ScaleLabels instance can be provided to allow for automatic label generation. If the labels are actually shown can be set with ScaleLabels::set_enabled()
| bool Scale::autoscale | ( | ) | const [inline] |
Query if autoscaling is enabled.
| bool Scale::enabled | ( | ) | const [inline] |
Query if the scale is enabled (i.e. visible).
Используется в HScale::on_tick_change() и VScale::on_tick_change().
| ScaleLabels* Scale::get_labels | ( | ) | [inline] |
Return the labels of scale.
| int Scale::major_ticklength | ( | ) | const [inline] |
| int Scale::minor_ticklength | ( | ) | const [inline] |
Return the minor ticklength.
| virtual void Scale::on_tick_change | ( | ) | [inline, protected, virtual] |
| Gtk::PositionType Scale::position | ( | ) | const [inline] |
Return where the scale is positioned.
| const PlotMM::DoubleIntMap& Scale::scale_map | ( | ) | const [inline] |
Query the ScaleMap used by this scale.
| sigc::signal1<void,bool> Scale::signal_enabled |
This signal is thrown whenever the scale is enabled or disabled
1.5.9