Класс Scale

Class to draw a scale. Подробнее...

#include <UScale.h>

Граф наследования:Scale:

HScale VScale

Полный список членов класса

Открытые члены

 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.
ScaleLabelsget_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_
ScaleLabelslabels_
Gdk::Color scale_color
int maxMaj
int maxMin
bool is_show
PlotMM::ScaleDiv scaleDiv_
PlotMM::DoubleIntMap scaleMap_


Подробное описание

Class to draw a scale.


Конструктор(ы)

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]

Return the major ticklength.

Используется в HScale::on_tick_change() и VScale::on_tick_change().

int Scale::minor_ticklength (  )  const [inline]

Return the minor ticklength.

virtual void Scale::on_tick_change (  )  [inline, protected, virtual]

implement this to react on changes of tick lengths

Переопределяется в VScale и HScale.

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

См. также:
set_enabled, enabled


Объявления и описания членов классов находятся в файлах:

Документация по UniWidgets. Последние изменения: Fri Oct 10 09:57:50 2014. Создано системой  doxygen 1.5.9