Forum und email

GtkRuler

A base class for GtkHRuler and GtkVRuler.

オブジェクトの階層

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

Direct Subclasses

説明

このウィジェットは GTK+ での用途が非常に限定されており、 ほとんど使われていません。将来は別のパッケージに移す予定です。 もしあなたのアプリケーションでこのウィジェットが必要なら、気にせず使用してください。 きちんと動作しますし、用途によっては便利なものでしょう。 ただ、万人向けのものではないというだけのことです。 しかし、今後このウィジェットに機能が追加されることはありません。また、 最終的には GTK+ の配布物からは除外される予定です。

The GTKRuler widget is a base class for horizontal and vertical rulers. Rulers are used to show the mouse pointer's location in a window. The ruler can either be horizontal or vertical on the window. Within the ruler a small triangle indicates the location of the mouse relative to the horizontal or vertical ruler.

メソッド

get_metric()
  Returns the display units.
get_range()
  Returns the range of the ruler.
set_metric()
  Sets the display unit.
set_range()
  Sets the range of the ruler.

プロパティ

これらにアクセスするには、get_property および set_property メソッドを使用します。

lower:
  Lower limit of ruler.
max-size:
  Maximum size of the ruler.
position:
  Position of mark on the ruler.
upper:
  Upper limit of ruler.