Forum und email

GtkHRuler

A horizontal ruler.

对象层次

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkRuler
                     `-- GtkHRuler

描述

该元件设计于在 GTK+ 中特殊或极少使用的情况, 并且在将来可能被移动到其他包中。如果在你的应用中该元件必不可少的时候, 你的才应当使用该元件。但这不符合一般情况。然而,我们不再接受本元件的新增特性, 并且最终将从 GTK+ 发行中将其去除。

The HRuler widget is a widget arranged horizontally creating a ruler that is utilized around other widgets such as a text widget. The ruler is used to show the location of the mouse on the window and to show the size of the window in specified units. The available units of measurement are Gtk::PIXELS, Gtk::INCHES and Gtk::CENTIMETERS. Gtk::PIXELS is the default.

构造函数

-- Creates a new horizontal ruler.