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+, и в бъдеще ще бъде преместен в някой друг пакет. Ако Вашата програма има нужда от този уйджет, можете да го използвате - той ще продължи да работи.

Constructors

-- 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.