Index

Package: Scale

Description

package Gtk.Scale is

A GtkScale is a slider control used to select a numeric value. To use it, you'll probably want to investigate the methods on its base class, Gtk.GRange.Gtk_Range, in addition to the methods for GtkScale itself. To set the value of a scale, you would normally use Gtk.GRange.Set_Value. To detect changes to the value, you would normally use the Gtk.GRange.Gtk_Range::value-changed signal.

Note that using the same upper and lower bounds for the Gtk.Scale.Gtk_Scale (through the Gtk.GRange.Gtk_Range methods) will hide the slider itself. This is useful for applications that want to show an undeterminate value on the scale, without changing the layout of the application (such as movie or music players). == GtkScale as GtkBuildable == GtkScale supports a custom <marks> element, which can contain multiple <mark> elements. The "value" and "position" attributes have the same meaning as Gtk.Scale.Add_Mark parameters of the same name. If the element is not empty, its content is taken as the markup to show at the mark. It can be translated with the usual "translatable and "context" attributes.

Screenshot

gtk-scale.png

Packages

Implements_Gtk_Buildable (new Glib.Types.Implements)

Implements_Gtk_Orientable (new Glib.Types.Implements)

Classes

Gtk_Scale_Record

type Gtk_Scale_Record is new Gtk_Range_Record with null record;

Ancestors:

Immediate Children:

Primitive operations:

Get_Draw_Value
Get_Has_Origin
Get_Layout_Offsets
Get_Orientation
Get_Value_Pos
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.GRange.Get_Adjustment (Inherited)
Gtk.GRange.Get_Fill_Level (Inherited)
Gtk.GRange.Get_Flippable (Inherited)
Gtk.GRange.Get_Inverted (Inherited)
Gtk.GRange.Get_Lower_Stepper_Sensitivity (Inherited)
Gtk.GRange.Get_Min_Slider_Size (Inherited)
Gtk.GRange.Get_Orientation (Inherited)
Gtk.GRange.Get_Range_Rect (Inherited)
Gtk.GRange.Get_Restrict_To_Fill_Level (Inherited)
Gtk.GRange.Get_Round_Digits (Inherited)
Gtk.GRange.Get_Show_Fill_Level (Inherited)
Gtk.GRange.Get_Slider_Range (Inherited)
Gtk.GRange.Get_Slider_Size_Fixed (Inherited)
Gtk.GRange.Get_Upper_Stepper_Sensitivity (Inherited)
Gtk.GRange.Get_Value (Inherited)
Gtk.GRange.On_Adjust_Bounds (Inherited)
Gtk.GRange.On_Adjust_Bounds (Inherited)
Gtk.GRange.On_Change_Value (Inherited)
Gtk.GRange.On_Change_Value (Inherited)
Gtk.GRange.On_Move_Slider (Inherited)
Gtk.GRange.On_Move_Slider (Inherited)
Gtk.GRange.On_Value_Changed (Inherited)
Gtk.GRange.On_Value_Changed (Inherited)
Gtk.GRange.Set_Adjustment (Inherited)
Gtk.GRange.Set_Fill_Level (Inherited)
Gtk.GRange.Set_Flippable (Inherited)
Gtk.GRange.Set_Increments (Inherited)
Gtk.GRange.Set_Inverted (Inherited)
Gtk.GRange.Set_Lower_Stepper_Sensitivity (Inherited)
Gtk.GRange.Set_Min_Slider_Size (Inherited)
Gtk.GRange.Set_Orientation (Inherited)
Gtk.GRange.Set_Range (Inherited)
Gtk.GRange.Set_Restrict_To_Fill_Level (Inherited)
Gtk.GRange.Set_Round_Digits (Inherited)
Gtk.GRange.Set_Show_Fill_Level (Inherited)
Gtk.GRange.Set_Slider_Size_Fixed (Inherited)
Gtk.GRange.Set_Upper_Stepper_Sensitivity (Inherited)
Gtk.GRange.Set_Value (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Device_Events (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Add_Tick_Callback (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Focus (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Compute_Expand (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Destroyed (Inherited)
Gtk.Widget.Device_Is_Shadowed (Inherited)
Gtk.Widget.Drag_Check_Threshold (Inherited)
Gtk.Widget.Drag_Dest_Add_Image_Targets (Inherited)
Gtk.Widget.Drag_Dest_Add_Text_Targets (Inherited)
Gtk.Widget.Drag_Dest_Add_Uri_Targets (Inherited)
Gtk.Widget.Drag_Dest_Get_Track_Motion (Inherited)
Gtk.Widget.Drag_Dest_Set_Proxy (Inherited)
Gtk.Widget.Drag_Dest_Set_Track_Motion (Inherited)
Gtk.Widget.Drag_Dest_Unset (Inherited)
Gtk.Widget.Drag_Get_Data (Inherited)
Gtk.Widget.Drag_Highlight (Inherited)
Gtk.Widget.Drag_Source_Add_Image_Targets (Inherited)
Gtk.Widget.Drag_Source_Add_Uri_Targets (Inherited)
Gtk.Widget.Drag_Source_Set_Icon_Pixbuf (Inherited)
Gtk.Widget.Drag_Source_Unset (Inherited)
Gtk.Widget.Drag_Unhighlight (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Event (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocated_Height (Inherited)
Gtk.Widget.Get_Allocated_Width (Inherited)
Gtk.Widget.Get_Allocation (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_App_Paintable (Inherited)
Gtk.Widget.Get_Can_Default (Inherited)
Gtk.Widget.Get_Can_Focus (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Device_Enabled (Inherited)
Gtk.Widget.Get_Device_Events (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Display (Inherited)
Gtk.Widget.Get_Double_Buffered (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Frame_Clock (Inherited)
Gtk.Widget.Get_Halign (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Has_Window (Inherited)
Gtk.Widget.Get_Hexpand (Inherited)
Gtk.Widget.Get_Hexpand_Set (Inherited)
Gtk.Widget.Get_Mapped (Inherited)
Gtk.Widget.Get_Margin_Bottom (Inherited)
Gtk.Widget.Get_Margin_Left (Inherited)
Gtk.Widget.Get_Margin_Right (Inherited)
Gtk.Widget.Get_Margin_Top (Inherited)
Gtk.Widget.Get_Modifier_Mask (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Opacity (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Path (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Preferred_Height (Inherited)
Gtk.Widget.Get_Preferred_Height_For_Width (Inherited)
Gtk.Widget.Get_Preferred_Size (Inherited)
Gtk.Widget.Get_Preferred_Width (Inherited)
Gtk.Widget.Get_Preferred_Width_For_Height (Inherited)
Gtk.Widget.Get_Realized (Inherited)
Gtk.Widget.Get_Receives_Default (Inherited)
Gtk.Widget.Get_Request_Mode (Inherited)
Gtk.Widget.Get_Requisition (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Screen (Inherited)
Gtk.Widget.Get_Sensitive (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_State_Flags (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Support_Multidevice (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Valign (Inherited)
Gtk.Widget.Get_Vexpand (Inherited)
Gtk.Widget.Get_Vexpand_Set (Inherited)
Gtk.Widget.Get_Visible (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Add (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Grab_Remove (Inherited)
Gtk.Widget.Has_Default (Inherited)
Gtk.Widget.Has_Focus (Inherited)
Gtk.Widget.Has_Grab (Inherited)
Gtk.Widget.Has_Rc_Style (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Has_Visible_Focus (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_On_Delete (Inherited)
Gtk.Widget.In_Destruction (Inherited)
Gtk.Widget.Input_Shape_Combine_Region (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Drawable (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Is_Sensitive (Inherited)
Gtk.Widget.Is_Toplevel (Inherited)
Gtk.Widget.Is_Visible (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.On_Accel_Closures_Changed (Inherited)
Gtk.Widget.On_Accel_Closures_Changed (Inherited)
Gtk.Widget.On_Button_Press_Event (Inherited)
Gtk.Widget.On_Button_Press_Event (Inherited)
Gtk.Widget.On_Button_Release_Event (Inherited)
Gtk.Widget.On_Button_Release_Event (Inherited)
Gtk.Widget.On_Can_Activate_Accel (Inherited)
Gtk.Widget.On_Can_Activate_Accel (Inherited)
Gtk.Widget.On_Child_Notify (Inherited)
Gtk.Widget.On_Child_Notify (Inherited)
Gtk.Widget.On_Composited_Changed (Inherited)
Gtk.Widget.On_Composited_Changed (Inherited)
Gtk.Widget.On_Configure_Event (Inherited)
Gtk.Widget.On_Configure_Event (Inherited)
Gtk.Widget.On_Damage_Event (Inherited)
Gtk.Widget.On_Damage_Event (Inherited)
Gtk.Widget.On_Delete_Event (Inherited)
Gtk.Widget.On_Delete_Event (Inherited)
Gtk.Widget.On_Destroy (Inherited)
Gtk.Widget.On_Destroy (Inherited)
Gtk.Widget.On_Destroy_Event (Inherited)
Gtk.Widget.On_Destroy_Event (Inherited)
Gtk.Widget.On_Direction_Changed (Inherited)
Gtk.Widget.On_Direction_Changed (Inherited)
Gtk.Widget.On_Drag_Begin (Inherited)
Gtk.Widget.On_Drag_Begin (Inherited)
Gtk.Widget.On_Drag_Data_Delete (Inherited)
Gtk.Widget.On_Drag_Data_Delete (Inherited)
Gtk.Widget.On_Drag_Data_Get (Inherited)
Gtk.Widget.On_Drag_Data_Get (Inherited)
Gtk.Widget.On_Drag_Data_Received (Inherited)
Gtk.Widget.On_Drag_Data_Received (Inherited)
Gtk.Widget.On_Drag_Drop (Inherited)
Gtk.Widget.On_Drag_Drop (Inherited)
Gtk.Widget.On_Drag_End (Inherited)
Gtk.Widget.On_Drag_End (Inherited)
Gtk.Widget.On_Drag_Failed (Inherited)
Gtk.Widget.On_Drag_Failed (Inherited)
Gtk.Widget.On_Drag_Leave (Inherited)
Gtk.Widget.On_Drag_Leave (Inherited)
Gtk.Widget.On_Drag_Motion (Inherited)
Gtk.Widget.On_Drag_Motion (Inherited)
Gtk.Widget.On_Draw (Inherited)
Gtk.Widget.On_Draw (Inherited)
Gtk.Widget.On_Enter_Notify_Event (Inherited)
Gtk.Widget.On_Enter_Notify_Event (Inherited)
Gtk.Widget.On_Event (Inherited)
Gtk.Widget.On_Event (Inherited)
Gtk.Widget.On_Event_After (Inherited)
Gtk.Widget.On_Event_After (Inherited)
Gtk.Widget.On_Focus (Inherited)
Gtk.Widget.On_Focus (Inherited)
Gtk.Widget.On_Focus_In_Event (Inherited)
Gtk.Widget.On_Focus_In_Event (Inherited)
Gtk.Widget.On_Focus_Out_Event (Inherited)
Gtk.Widget.On_Focus_Out_Event (Inherited)
Gtk.Widget.On_Grab_Broken_Event (Inherited)
Gtk.Widget.On_Grab_Broken_Event (Inherited)
Gtk.Widget.On_Grab_Focus (Inherited)
Gtk.Widget.On_Grab_Focus (Inherited)
Gtk.Widget.On_Grab_Notify (Inherited)
Gtk.Widget.On_Grab_Notify (Inherited)
Gtk.Widget.On_Hide (Inherited)
Gtk.Widget.On_Hide (Inherited)
Gtk.Widget.On_Hierarchy_Changed (Inherited)
Gtk.Widget.On_Hierarchy_Changed (Inherited)
Gtk.Widget.On_Key_Press_Event (Inherited)
Gtk.Widget.On_Key_Press_Event (Inherited)
Gtk.Widget.On_Key_Release_Event (Inherited)
Gtk.Widget.On_Key_Release_Event (Inherited)
Gtk.Widget.On_Keynav_Failed (Inherited)
Gtk.Widget.On_Keynav_Failed (Inherited)
Gtk.Widget.On_Leave_Notify_Event (Inherited)
Gtk.Widget.On_Leave_Notify_Event (Inherited)
Gtk.Widget.On_Map (Inherited)
Gtk.Widget.On_Map (Inherited)
Gtk.Widget.On_Map_Event (Inherited)
Gtk.Widget.On_Map_Event (Inherited)
Gtk.Widget.On_Mnemonic_Activate (Inherited)
Gtk.Widget.On_Mnemonic_Activate (Inherited)
Gtk.Widget.On_Motion_Notify_Event (Inherited)
Gtk.Widget.On_Motion_Notify_Event (Inherited)
Gtk.Widget.On_Move_Focus (Inherited)
Gtk.Widget.On_Move_Focus (Inherited)
Gtk.Widget.On_Parent_Set (Inherited)
Gtk.Widget.On_Parent_Set (Inherited)
Gtk.Widget.On_Popup_Menu (Inherited)
Gtk.Widget.On_Popup_Menu (Inherited)
Gtk.Widget.On_Property_Notify_Event (Inherited)
Gtk.Widget.On_Property_Notify_Event (Inherited)
Gtk.Widget.On_Proximity_In_Event (Inherited)
Gtk.Widget.On_Proximity_In_Event (Inherited)
Gtk.Widget.On_Proximity_Out_Event (Inherited)
Gtk.Widget.On_Proximity_Out_Event (Inherited)
Gtk.Widget.On_Query_Tooltip (Inherited)
Gtk.Widget.On_Query_Tooltip (Inherited)
Gtk.Widget.On_Realize (Inherited)
Gtk.Widget.On_Realize (Inherited)
Gtk.Widget.On_Screen_Changed (Inherited)
Gtk.Widget.On_Screen_Changed (Inherited)
Gtk.Widget.On_Scroll_Event (Inherited)
Gtk.Widget.On_Scroll_Event (Inherited)
Gtk.Widget.On_Selection_Clear_Event (Inherited)
Gtk.Widget.On_Selection_Clear_Event (Inherited)
Gtk.Widget.On_Selection_Get (Inherited)
Gtk.Widget.On_Selection_Get (Inherited)
Gtk.Widget.On_Selection_Notify_Event (Inherited)
Gtk.Widget.On_Selection_Notify_Event (Inherited)
Gtk.Widget.On_Selection_Received (Inherited)
Gtk.Widget.On_Selection_Received (Inherited)
Gtk.Widget.On_Selection_Request_Event (Inherited)
Gtk.Widget.On_Selection_Request_Event (Inherited)
Gtk.Widget.On_Show (Inherited)
Gtk.Widget.On_Show (Inherited)
Gtk.Widget.On_Show_Help (Inherited)
Gtk.Widget.On_Show_Help (Inherited)
Gtk.Widget.On_Size_Allocate (Inherited)
Gtk.Widget.On_Size_Allocate (Inherited)
Gtk.Widget.On_State_Changed (Inherited)
Gtk.Widget.On_State_Changed (Inherited)
Gtk.Widget.On_State_Flags_Changed (Inherited)
Gtk.Widget.On_State_Flags_Changed (Inherited)
Gtk.Widget.On_Style_Set (Inherited)
Gtk.Widget.On_Style_Set (Inherited)
Gtk.Widget.On_Style_Updated (Inherited)
Gtk.Widget.On_Style_Updated (Inherited)
Gtk.Widget.On_Touch_Event (Inherited)
Gtk.Widget.On_Touch_Event (Inherited)
Gtk.Widget.On_Unmap (Inherited)
Gtk.Widget.On_Unmap (Inherited)
Gtk.Widget.On_Unmap_Event (Inherited)
Gtk.Widget.On_Unmap_Event (Inherited)
Gtk.Widget.On_Unrealize (Inherited)
Gtk.Widget.On_Unrealize (Inherited)
Gtk.Widget.On_Visibility_Notify_Event (Inherited)
Gtk.Widget.On_Visibility_Notify_Event (Inherited)
Gtk.Widget.On_Window_State_Event (Inherited)
Gtk.Widget.On_Window_State_Event (Inherited)
Gtk.Widget.Override_Background_Color (Inherited)
Gtk.Widget.Override_Color (Inherited)
Gtk.Widget.Override_Cursor (Inherited)
Gtk.Widget.Override_Font (Inherited)
Gtk.Widget.Override_Symbolic_Color (Inherited)
Gtk.Widget.Queue_Compute_Expand (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Draw_Region (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Register_Window (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Remove_Tick_Callback (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Render_Icon_Pixbuf (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Send_Focus_Change (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_Allocation (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Can_Default (Inherited)
Gtk.Widget.Set_Can_Focus (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Device_Enabled (Inherited)
Gtk.Widget.Set_Device_Events (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Halign (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Has_Window (Inherited)
Gtk.Widget.Set_Hexpand (Inherited)
Gtk.Widget.Set_Hexpand_Set (Inherited)
Gtk.Widget.Set_Mapped (Inherited)
Gtk.Widget.Set_Margin_Bottom (Inherited)
Gtk.Widget.Set_Margin_Left (Inherited)
Gtk.Widget.Set_Margin_Right (Inherited)
Gtk.Widget.Set_Margin_Top (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Opacity (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Realized (Inherited)
Gtk.Widget.Set_Receives_Default (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_State_Flags (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Support_Multidevice (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_Valign (Inherited)
Gtk.Widget.Set_Vexpand (Inherited)
Gtk.Widget.Set_Vexpand_Set (Inherited)
Gtk.Widget.Set_Visible (Inherited)
Gtk.Widget.Set_Visual (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Region (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Attach (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Translate_Coordinates (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unparent (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unregister_Window (Inherited)
Gtk.Widget.Unset_State_Flags (Inherited)
On_Format_Value
On_Format_Value
Set_Draw_Value
Set_Has_Origin
Set_Orientation
Set_Value_Pos

Types

Gtk_Scale

type Gtk_Scale is access all Gtk_Scale_Record'Class;

Gtk_Hscale_Record

subtype Gtk_Hscale_Record is Gtk_Scale_Record;

Gtk_Hscale

subtype Gtk_Hscale is Gtk_Scale;

Gtk_Vscale_Record

subtype Gtk_Vscale_Record is Gtk_Scale_Record;

Gtk_Vscale

subtype Gtk_Vscale is Gtk_Scale;

Cb_Gtk_Scale_Gdouble_UTF8_String

type Cb_Gtk_Scale_Gdouble_UTF8_String is not null access function
     (Self  : access Gtk_Scale_Record'Class;
      Value : Gdouble) return UTF8_String;

Cb_GObject_Gdouble_UTF8_String

type Cb_GObject_Gdouble_UTF8_String is not null access function
     (Self  : access Glib.Object.GObject_Record'Class;
      Value : Gdouble) return UTF8_String;

Constants & Global variables

The_Digits_Property (Glib.Properties.Property_Int)

The_Digits_Property : constant Glib.Properties.Property_Int;

Signal_Format_Value (Glib.Signal_Name)

Signal_Format_Value : constant Glib.Signal_Name := "format-value";

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Scale: out Gtk_Scale;
Orientation: Gtk.Enums.Gtk_Orientation;
Adjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class);

Initialize

procedure Initialize 
(Scale: not null access Gtk_Scale_Record'Class;
Orientation: Gtk.Enums.Gtk_Orientation;
Adjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
Creates a new Gtk.Scale.Gtk_Scale. Since: gtk+ 3.0 "orientation": the scale's orientation. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale, or null to create a new adjustment.

Gtk_Scale_New

function Gtk_Scale_New 
(Orientation: Gtk.Enums.Gtk_Orientation;
Adjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class) return Gtk_Scale;
Creates a new Gtk.Scale.Gtk_Scale. Since: gtk+ 3.0 "orientation": the scale's orientation. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale, or null to create a new adjustment.

Gtk_New_With_Range

procedure Gtk_New_With_Range 
(Scale: out Gtk_Scale;
Orientation: Gtk.Enums.Gtk_Orientation;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);

Initialize_With_Range

procedure Initialize_With_Range 
(Scale: not null access Gtk_Scale_Record'Class;
Orientation: Gtk.Enums.Gtk_Orientation;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);
Creates a new scale widget with the given orientation that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. Since: gtk+ 3.0 "orientation": the scale's orientation. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Gtk_Scale_New_With_Range

function Gtk_Scale_New_With_Range 
(Orientation: Gtk.Enums.Gtk_Orientation;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble) return Gtk_Scale;
Creates a new scale widget with the given orientation that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. Since: gtk+ 3.0 "orientation": the scale's orientation. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Get_Type

function Get_Type return Glib.GType;

Gtk_New_Hscale

procedure Gtk_New_Hscale 
(Scale: out Gtk_Hscale;
Adjustment: Gtk.Adjustment.Gtk_Adjustment := null);

Initialize_Hscale

procedure Initialize_Hscale 
(Scale: not null access Gtk_Hscale_Record'Class;
Adjustment: Gtk.Adjustment.Gtk_Adjustment := null);
Creates a new Gtk.Scale.Gtk_Hscale. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale.

Gtk_New_Hscale

procedure Gtk_New_Hscale 
(Scale: out Gtk_Hscale;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);

Initialize_Hscale

procedure Initialize_Hscale 
(Scale: not null access Gtk_Hscale_Record'Class;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);
Creates a new horizontal scale widget that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Gtk_Hscale_New

function Gtk_Hscale_New 
(Adjustment: Gtk.Adjustment.Gtk_Adjustment := null) return Gtk_Hscale;
Creates a new Gtk.Scale.Gtk_Hscale. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale.

Gtk_Hscale_New_With_Range

function Gtk_Hscale_New_With_Range 
(Min: Gdouble;
Max: Gdouble;
Step: Gdouble) return Gtk_Hscale;
Creates a new horizontal scale widget that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Hscale_Get_Type

function Hscale_Get_Type return Glib.GType;

Gtk_New_Vscale

procedure Gtk_New_Vscale 
(Scale: out Gtk_Vscale;
Adjustment: Gtk.Adjustment.Gtk_Adjustment := null);

Initialize_Vscale

procedure Initialize_Vscale 
(Scale: not null access Gtk_Vscale_Record'Class;
Adjustment: Gtk.Adjustment.Gtk_Adjustment := null);
Creates a new Gtk.Scale.Gtk_Vscale. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale.

Gtk_New_Vscale

procedure Gtk_New_Vscale 
(Scale: out Gtk_Vscale;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);

Initialize_Vscale

procedure Initialize_Vscale 
(Scale: not null access Gtk_Vscale_Record'Class;
Min: Gdouble;
Max: Gdouble;
Step: Gdouble);
Creates a new vertical scale widget that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Gtk_Vscale_New

function Gtk_Vscale_New 
(Adjustment: Gtk.Adjustment.Gtk_Adjustment := null) return Gtk_Vscale;
Creates a new Gtk.Scale.Gtk_Vscale. "adjustment": the Gtk.Adjustment.Gtk_Adjustment which sets the range of the scale.

Gtk_Vscale_New_With_Range

function Gtk_Vscale_New_With_Range 
(Min: Gdouble;
Max: Gdouble;
Step: Gdouble) return Gtk_Vscale;
Creates a new vertical scale widget that lets the user input a number between Min and Max (including Min and Max) with the increment Step. Step must be nonzero; it's the distance the slider moves when using the arrow keys to adjust the scale value. Note that the way in which the precision is derived works best if Step is a power of ten. If the resulting precision is not suitable for your needs, use Gtk.Scale.Set_Digits to correct it. "min": minimum value "max": maximum value "step": step increment (tick size) used with keyboard shortcuts

Vscale_Get_Type

function Vscale_Get_Type return Glib.GType;

Add_Mark

procedure Add_Mark 
(Scale: not null access Gtk_Scale_Record;
Value: Gdouble;
Position: Gtk.Enums.Gtk_Position_Type;
Markup: UTF8_String := "");
Adds a mark at Value. A mark is indicated visually by drawing a tick mark next to the scale, and GTK+ makes it easy for the user to position the scale exactly at the marks value. If Markup is not null, text is shown next to the tick mark. To remove marks from a scale, use Gtk.Scale.Clear_Marks. Since: gtk+ 2.16 "value": the value at which the mark is placed, must be between the lower and upper limits of the scales' adjustment "position": where to draw the mark. For a horizontal scale, GTK_POS_TOP and Gtk.Enums.Pos_Left are drawn above the scale, anything else below. For a vertical scale, GTK_POS_LEFT and Gtk.Enums.Pos_Top are drawn to the left of the scale, anything else to the right. "markup": Text to be shown at the mark, using <link linkend="PangoMarkupFormat">Pango markup</link>, or null

Clear_Marks

procedure Clear_Marks 
(Scale: not null access Gtk_Scale_Record);
Removes any marks that have been added with Gtk.Scale.Add_Mark. Since: gtk+ 2.16

Get_Digits

function Get_Digits 
(Scale: not null access Gtk_Scale_Record) return Gint;
Gets the number of decimal places that are displayed in the value.

Set_Digits

procedure Set_Digits 
(Scale: not null access Gtk_Scale_Record;
The_Digits: Gint);
Sets the number of decimal places that are displayed in the value. Also causes the value of the adjustment to be rounded off to this number of digits, so the retrieved value matches the value the user saw. "digits": the number of decimal places to display, e.g. use 1 to display 1.0, 2 to display 1.00, etc

Get_Draw_Value

function Get_Draw_Value 
(Scale: not null access Gtk_Scale_Record) return Boolean;
Returns whether the current value is displayed as a string next to the slider.

Set_Draw_Value

procedure Set_Draw_Value 
(Scale: not null access Gtk_Scale_Record;
Draw_Value: Boolean);
Specifies whether the current value is displayed as a string next to the slider. "draw_value": True to draw the value

Get_Has_Origin

function Get_Has_Origin 
(Scale: not null access Gtk_Scale_Record) return Boolean;
Returns whether the scale has an origin. Since: gtk+ 3.4

Set_Has_Origin

procedure Set_Has_Origin 
(Scale: not null access Gtk_Scale_Record;
Has_Origin: Boolean);
If Has_Origin is set to True (the default), the scale will highlight the part of the scale between the origin (bottom or left side) of the scale and the current value. Since: gtk+ 3.4 "has_origin": True if the scale has an origin

Get_Layout

function Get_Layout 
(Scale: not null access Gtk_Scale_Record) return Pango.Layout.Pango_Layout;
Gets the Pango.Layout.Pango_Layout used to display the scale. The returned object is owned by the scale so does not need to be freed by the caller. Since: gtk+ 2.4

Get_Layout_Offsets

procedure Get_Layout_Offsets 
(Scale: not null access Gtk_Scale_Record;
X: out Gint;
Y: out Gint);
Obtains the coordinates where the scale will draw the Pango.Layout.Pango_Layout representing the text in the scale. Remember when using the Pango.Layout.Pango_Layout function you need to convert to and from pixels using PANGO_PIXELS or PANGO_SCALE. If the Gtk.Scale.Gtk_Scale:draw-value property is False, the return values are undefined. Since: gtk+ 2.4 "x": location to store X offset of layout, or null "y": location to store Y offset of layout, or null

Get_Value_Pos

function Get_Value_Pos 
(Scale: not null access Gtk_Scale_Record) return Gtk.Enums.Gtk_Position_Type;
Gets the position in which the current value is displayed.

Set_Value_Pos

procedure Set_Value_Pos 
(Scale: not null access Gtk_Scale_Record;
Pos: Gtk.Enums.Gtk_Position_Type);
Sets the position in which the current value is displayed. "pos": the position in which the current value is displayed

Get_Orientation

function Get_Orientation 
(Self: not null access Gtk_Scale_Record) return Gtk.Enums.Gtk_Orientation;

Set_Orientation

procedure Set_Orientation 
(Self: not null access Gtk_Scale_Record;
Orientation: Gtk.Enums.Gtk_Orientation);

On_Format_Value

procedure On_Format_Value 
(Self: not null access Gtk_Scale_Record;
Call: Cb_Gtk_Scale_Gdouble_UTF8_String;
After: Boolean := False);

On_Format_Value

procedure On_Format_Value 
(Self: not null access Gtk_Scale_Record;
Call: Cb_GObject_Gdouble_UTF8_String;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Signal which allows you to change how the scale value is displayed. Connect a signal handler which returns an allocated string representing Value. That string will then be used to display the scale's value. Here's an example signal handler which displays a value 1.0 as with "-->1.0<--". |[ static gchar* format_value_callback (GtkScale *scale, gdouble value) { return g_strdup_printf ("-->%0.*g<--", gtk_scale_get_digits (scale), value); } ]| Callback parameters: -- "value": the value to format -- Returns allocated string representing Value