Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
type Gtk_Scale_Format_Value_Func is access function
(Scale : not null access Gtk.Scale.Gtk_Scale_Record'Class;
Value : Gdouble;
User_Data : User_Data_Type) return UTF8_String;
Function that formats the value of a scale. See [methodGtk.Scale.set_format_value_func].
The GtkScale
The numeric value to format
user data
A newly allocated string describing a textual representation of the given numerical value.
procedure Set_Format_Value_Func
(Self : not null access Gtk.Scale.Gtk_Scale_Record'Class;
Func : Gtk_Scale_Format_Value_Func;
User_Data : User_Data_Type)
Func allows you to change how the scale value is displayed. The given function will return an allocated string representing Value. That string will then be used to display the scale's value. If NULL is passed as Func, the value will be displayed on its own, rounded according to the value of the [propertyGtk.Scale:digits] property.
function that formats the value
user data to pass to Func
type User_Data_Type (<>) is private;