![]() |
![]() |
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.
This is an abstract base for Gtk::HRuler and Gtk::VRuler. Users should only instantiate those types.
Public Member Functions | |
void | draw_pos () |
draw a position indicator on the ruler | |
virtual void | draw_pos_vfunc () |
void | draw_ticks () |
draw tick marks on the ruler | |
virtual void | draw_ticks_vfunc () |
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. | |
Glib::PropertyProxy_ReadOnly< double > | property_lower () const |
Lower limit of ruler. | |
Glib::PropertyProxy<double> | property_lower () |
Lower limit of ruler. | |
Glib::PropertyProxy_ReadOnly< double > | property_max_size () const |
Maximum size of the ruler. | |
Glib::PropertyProxy<double> | property_max_size () |
Maximum size of the ruler. | |
Glib::PropertyProxy_ReadOnly< double > | property_position () const |
Position of mark on the ruler. | |
Glib::PropertyProxy<double> | property_position () |
Position of mark on the ruler. | |
Glib::PropertyProxy_ReadOnly< double > | property_upper () const |
Upper limit of ruler. | |
Glib::PropertyProxy<double> | property_upper () |
Upper limit of ruler. | |
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) |
|
|
|
|
|
draw a position indicator on the ruler
|
|
|
|
draw tick marks on the ruler
|
|
|
|
Gets the units used for a Gtk::Ruler. See set_metric().
|
|
|
|
Retrieves values indicating the range and current position of a Gtk::Ruler. See set_range().
|
|
|
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Widget. Reimplemented in Gtk::VRuler, and Gtk::HRuler. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Widget. Reimplemented in Gtk::VRuler, and Gtk::HRuler. |
|
Lower limit of ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Lower limit of ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Maximum size of the ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Maximum size of the ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Position of mark on the ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Position of mark on the ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Upper limit of ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Upper limit of ruler. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets the desired metric of the ruler. The possible choices are: The default metric is Gtk::PIXELS. |
|
sets the range of the ruler. upper and lower arguments denote the extents of the Ruler. max_size is the largest number displayed by the ruler. position gives the initial value of the ruler. Rulers do not have sane defaults so this function should always be called. |
|
|