Toc Gallery Index Tree Gtk.Curve

Hierarchy

Description

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.

Types

Subprograms

  • procedure Gtk_New (Curve : out Gtk_Curve);
    Create a new Curve.
  • procedure Initialize (Curve : access Gtk_Curve_Record'Class);
    Internal initialization function. See the section "Creating your own widgets" in the documentation.
  • 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. Reset to a straight line from the minimum x & y values to the maximum x & y values (i.e. from the bottom-left to the top-right corners). The curve type is not changed.
  • procedure Set_Gamma (Curve : access Gtk_Curve_Record; Gamma : Gfloat);
    Recompute the entire curve using the given gamma value. A gamma value of 1.0 results in a straight line. Values greater than 1.0 result in a curve above the straight line. Values less than 1.0 result in a curve below the straight line. The curve type is changed to Curve_Type_Free.
  • 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. The curve is also reset with a call to Reset.
  • procedure Set_Vector (Curve : access Gtk_Curve_Record; Vector : Gfloat_Array);
    procedure Get_Vector (Curve : access Gtk_Curve_Record; Vector : out Gfloat_Array);
    Set the vector of points on the curve. The curve type is set to Curve_Type_Free.
  • procedure Set_Curve_Type (Curve : access Gtk_Curve_Record; Curve_Type : Gtk_Curve_Type);
    Set the type of the curve. The curve will remain unchanged except when changing from a free curve to a linear or spline curve, in which case the curve will be changed as little as possible.

Signals

Properties

  • Curve_Type_Property
    Gtk_Curve_Type
    Is this curve linear, spline interpolated, or free-form
    See: Set_Curve_Type
  • Max_X_Property
    Gfloat
    Maximum possible value for X
    See: Set_Range
  • Max_Y_Property
    Gfloat
    Maximum possible value for Y
    See: Set_Range
  • Min_X_Property
    Gfloat
    Minimum possible value for X
    See: Set_Range
  • Min_Y_Property
    Gfloat
    Minimum possible value for Y
    See: Set_Range

Alphabetical Index