package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Curve_Record, Gtk_Curve);
type Gtk_Curve_Record is new Gtk_Drawing_Area_Record with null record;
type Gtk_Curve is access all Gtk_Curve_Record'Class;
Curve_Type_Property : constant Gtk.Enums.Property_Gtk_Curve_Type;
Max_X_Property : constant Glib.Properties.Property_Float;
Max_Y_Property : constant Glib.Properties.Property_Float;
Min_X_Property : constant Glib.Properties.Property_Float;
Min_Y_Property : constant Glib.Properties.Property_Float;
Signal_Curve_Type_Changed : constant Glib.Signal_Name := "curve-type-changed";
procedure Gtk_New
( | Curve | : out Gtk_Curve); |
procedure Initialize
( | Curve | : access Gtk_Curve_Record'Class); |
function Get_Type return Glib.GType;
procedure Reset
( | Curve | : access Gtk_Curve_Record); |
procedure Set_Curve_Type
( | Curve | : access Gtk_Curve_Record; |
The_Type | : Gtk.Enums.Gtk_Curve_Type); |
procedure Set_Gamma
( | Curve | : access Gtk_Curve_Record; |
Gamma | : Gfloat); |
procedure Set_Range
( | Curve | : access Gtk_Curve_Record; |
Min_X | : Gfloat; | |
Max_X | : Gfloat; | |
Min_Y | : Gfloat; | |
Max_Y | : Gfloat); |
procedure Set_Vector
( | Curve | : access Gtk_Curve_Record; |
Vector | : Gfloat_Array); |
procedure Get_Vector
( | Curve | : access Gtk_Curve_Record; |
Vector | : out Gfloat_Array); |
function "+"
( | Widget | : access Gtk_Curve_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Curve renames Implements_Buildable.To_Object; |
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.