UniWidgets  1.2.0
Открытые члены | Защищенные члены | Защищенные данные
Класс ScaleLabels

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

#include <UScale.h>

Граф наследования:ScaleLabels:
EventBox HScaleLabels VScaleLabels

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

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

 ScaleLabels (Gtk::PositionType p)
Pango::FontDescription * font ()
 Return a pointer to the labels' font.
void set_labels (int offs, const std::map< int, double > &labels)
void set_labels_color (Gdk::Color color)
void set_labels_font (Pango::FontDescription fd)
void set_enabled (bool b)
bool enabled () const
 Return if the labels are enabled.
Glib::ustring format (double) const
int text_width (const Glib::ustring &) const
int text_height (const Glib::ustring &) const
Gtk::PositionType position ()
 Return where the labels are positioned.
void set_scaleDiv (const PlotMM::ScaleDiv &Div)
void set_scaleMap (const PlotMM::DoubleIntMap &Map)

Защищенные члены

virtual void newsize_ ()
virtual void requestsize_ ()
virtual bool on_map_event (GdkEvent *event)

Защищенные данные

int offset_
int layw_
int layh_
int range_
std::map< int, double > labels_
Glib::RefPtr< Pango::Layout > layout_
Pango::FontDescription font_
Gdk::Color label_color
bool is_show
PlotMM::ScaleDiv scaleDiv_
PlotMM::DoubleIntMap scaleMap_

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

Class to draw scale labels.


Методы

bool ScaleLabels::enabled ( ) const [inline]

Return if the labels are enabled.

Pango::FontDescription* ScaleLabels::font ( ) [inline]

Return a pointer to the labels' font.

Gtk::PositionType ScaleLabels::position ( ) [inline]

Return where the labels are positioned.

void ScaleLabels::set_labels ( int  offs,
const std::map< int, double > &  labels 
)

Set the labels to be drawn

The given map holds double values associated with int positions on a scale. The given offs can be taken as a hint to calculate the right positions for the labels. Normally, the leftmost or upmost border of the scale's Gdk::Window is taken for this offset.

См. также:
newsize_ (called automatically)

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