Forum und email

GtkCurve

Widget that allows editing of a curve.

对象层次

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkDrawingArea
                     `-- GtkCurve

描述

The GtkCurve is a widget that allows the user to directly edit a curve covering a range of values.

The GtkCurve widget has 3 modes of operation; spline, linear and free. In spline mode the user places points on the curve which are automatically connected together into a smooth curve. In linear mode the user places points on the curve which are connected by straight lines. In free mode the user can draw the points of the curve freely, and they are not connected at all.

该元件设计于在 GTK+ 中特殊或极少使用的情况, 并且在将来可能被移动到其他包中。如果在你的应用中该元件必不可少的时候, 你的才应当使用该元件。但这不符合一般情况。

构造函数

-- Creates a new GtkCurve.

方法

get_vector()
  FIXME
reset()
  Resets the curve to a straight line.
set_curve_type()
  Sets the type of the curve.
set_gamma()
  Recomputes the curve using the given gamma value.
set_range()
  Sets the minimum and maximum x and y values of the curve.
set_vector()
  FIXME

信号

"curve-type-changed"
  Emitted when the curve type has been changed.