The Gtk_Curve widget allows the user to edit a curve covering a range of values. It is typically used to fine-tune color balances in graphics applications like the Gimp.
The Gtk_Curve 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.
Widget Hierarchy |
---|
GObject (see section Package Glib.Object)
Gtk_Object (see section Package Gtk.Object)
\___ Gtk_Widget (see section Package Gtk.Widget)
\___ Gtk_Drawing_Area (see section Package Gtk.Drawing
|
Signals |
---|
Types |
---|
type Property_Gtk_Curve_Type is new Curve_Type_Properties.Property; | |
|
Subprograms |
---|
procedure Gtk_New (Curve : out Gtk_Curve); | ||
Create a new Curve.
| ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Curve.
| ||
procedure Reset (Curve : access Gtk_Curve_Record); | ||
Reset the curve. | ||
procedure Set_Gamma (Curve : access Gtk_Curve_Record; Gamma : Gfloat); | ||
Recompute the entire curve using the given gamma value. | ||
procedure Set_Range (Curve : access Gtk_Curve_Record; Min_X : Gfloat; Max_X : Gfloat; Min_Y : Gfloat; Max_Y : Gfloat); | ||
Set the minimum and maximum x & y values of the curve. | ||
procedure Set_Vector (Curve : access Gtk_Curve_Record; Vector : Gfloat_Array); | ||
Set the vector of points on the curve. | ||
procedure Get_Vector (Curve : access Gtk_Curve_Record; Vector : out Gfloat_Array); | ||
Return a vector of points representing the curve.
| ||
procedure Set_Curve_Type (Curve : access Gtk_Curve_Record; Curve_Type : Gtk_Curve_Type); | ||
Set the type of the curve. |