NOTE this widget is considered too specialized/little-used for GTK+, and will in the future be moved to some other package. If your application needs this widget, feel free to use it, as the widget does work and is useful in some applications; it's just not of general interest. However, we are not accepting new features for the widget, and it will eventually move out of the GTK+ distribution. Rulers are used to show the mouse pointer's location in a window. The ruler can either be horizontal or vertical. Within the ruler a small triangle indicates the location of the mouse relative to the horixontal or vertical ruler.
|
Public Member Functions |
void | draw_pos () |
| draw a position indicator on the ruler
|
void | draw_ticks () |
| draw tick marks on the ruler
|
MetricType | get_metric () |
| Gets the units used for a Gtk::Ruler.
|
MetricType | get_metric () const |
void | get_range (double& lower, double& upper, double& position, double& max_size) |
| Retrieves values indicating the range and current position of a Gtk::Ruler.
|
double | get_range_lower () const |
double | get_range_upper () const |
const GtkRuler* | gobj () const |
| Provides access to the underlying C GtkObject.
|
GtkRuler* | gobj () |
| Provides access to the underlying C GtkObject.
|
void | set_metric (MetricType metric=PIXELS) |
| Sets the desired metric of the ruler.
|
void | set_range (double lower, double upper, double position, double max_size) |
| sets the range of the ruler.
|
virtual | ~Ruler () |
Protected Member Functions |
| Ruler () |
Related Functions |
(Note that these are not member functions.)
|
Gtk::Ruler* | wrap (GtkRuler* object, bool take_copy=false) |