Index

Package: Scrolled_Window

Description

package Gtk.Scrolled_Window is

Gtk.Scrolled_Window.Gtk_Scrolled_Window is a Gtk.Bin.Gtk_Bin subclass: it's a container the accepts a single child widget.

Gtk.Scrolled_Window.Gtk_Scrolled_Window adds scrollbars to the child widget and optionally draws a beveled frame around the child widget.

The scrolled window can work in two ways. Some widgets have native scrolling support; these widgets implement the Gtk.Scrollable.Gtk_Scrollable interface. Widgets with native scroll support include Gtk.Tree_View.Gtk_Tree_View, Gtk.Text_View.Gtk_Text_View, and Gtk.Layout.Gtk_Layout.

For widgets that lack native scrolling support, the Gtk.Viewport.Gtk_Viewport widget acts as an adaptor class, implementing scrollability for child widgets that lack their own scrolling capabilities.

Use Gtk.Viewport.Gtk_Viewport to scroll child widgets such as Gtk.Grid.Gtk_Grid, Gtk.Box.Gtk_Box, and so on.

If a widget has native scrolling abilities, it can be added to the Gtk.Scrolled_Window.Gtk_Scrolled_Window with Gtk.Container.Add. If a widget does not, you must first add the widget to a Gtk.Viewport.Gtk_Viewport, then add the Gtk.Viewport.Gtk_Viewport to the scrolled window.

Gtk.Container.Add will do this for you for widgets that don't implement Gtk.Scrollable.Gtk_Scrollable natively, so you can ignore the presence of the viewport.

The position of the scrollbars is controlled by the scroll adjustments.

See Gtk.Adjustment.Gtk_Adjustment for the fields in an adjustment - for Gtk.Scrollbar.Gtk_Scrollbar, used by Gtk.Scrolled_Window.Gtk_Scrolled_Window, the "value" field represents the position of the scrollbar, which must be between the "lower" field and "upper - page_size." The "page_size" field represents the size of the visible scrollable area. The "step_increment" and "page_increment" fields are used when the user asks to step down (using the small stepper arrows) or page down (using for example the PageDown key).

If a Gtk.Scrolled_Window.Gtk_Scrolled_Window doesn't behave quite as you would like, or doesn't have exactly the right layout, it's very possible to set up your own scrolling with Gtk.Scrollbar.Gtk_Scrollbar and for example a Gtk.Grid.Gtk_Grid.

Packages

Implements_Gtk_Buildable (new Glib.Types.Implements)

Classes

Gtk_Scrolled_Window_Record

type Gtk_Scrolled_Window_Record is new Gtk_Bin_Record with null record;

Ancestors:

Primitive operations:

Add_With_Viewport
Get_Capture_Button_Press
Get_Hadjustment
Get_Hscrollbar
Get_Kinetic_Scrolling
Get_Min_Content_Height
Get_Min_Content_Width
Get_Placement
Get_Shadow_Type
Get_Vadjustment
Get_Vscrollbar
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.Bin.Get_Child (Inherited)
Gtk.Container.Add (Inherited)
Gtk.Container.Check_Resize (Inherited)
Gtk.Container.Child_Get_Property (Inherited)
Gtk.Container.Child_Notify (Inherited)
Gtk.Container.Child_Set_Property (Inherited)
Gtk.Container.Child_Type (Inherited)
Gtk.Container.Forall (Inherited)
Gtk.Container.Foreach (Inherited)
Gtk.Container.Get_Border_Width (Inherited)
Gtk.Container.Get_Children (Inherited)
Gtk.Container.Get_Focus_Child (Inherited)
Gtk.Container.Get_Focus_Hadjustment (Inherited)
Gtk.Container.Get_Focus_Vadjustment (Inherited)
Gtk.Container.Get_Path_For_Child (Inherited)
Gtk.Container.Get_Resize_Mode (Inherited)
Gtk.Container.On_Add (Inherited)
Gtk.Container.On_Add (Inherited)
Gtk.Container.On_Check_Resize (Inherited)
Gtk.Container.On_Check_Resize (Inherited)
Gtk.Container.On_Remove (Inherited)
Gtk.Container.On_Remove (Inherited)
Gtk.Container.On_Set_Focus_Child (Inherited)
Gtk.Container.On_Set_Focus_Child (Inherited)
Gtk.Container.Propagate_Draw (Inherited)
Gtk.Container.Remove (Inherited)
Gtk.Container.Resize_Children (Inherited)
Gtk.Container.Set_Border_Width (Inherited)
Gtk.Container.Set_Focus_Chain (Inherited)
Gtk.Container.Set_Focus_Child (Inherited)
Gtk.Container.Set_Focus_Hadjustment (Inherited)
Gtk.Container.Set_Focus_Vadjustment (Inherited)
Gtk.Container.Set_Reallocate_Redraws (Inherited)
Gtk.Container.Set_Resize_Mode (Inherited)
Gtk.Container.Unset_Focus_Chain (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_Move_Focus_Out
On_Move_Focus_Out
On_Scroll_Child
On_Scroll_Child
Set_Capture_Button_Press
Set_Hadjustment
Set_Kinetic_Scrolling
Set_Min_Content_Height
Set_Min_Content_Width
Set_Placement
Set_Shadow_Type
Set_Vadjustment
Unset_Placement

Types

Gtk_Scrolled_Window

type Gtk_Scrolled_Window is access all Gtk_Scrolled_Window_Record'Class;

Cb_Gtk_Scrolled_Window_Gtk_Direction_Type_Void

type Cb_Gtk_Scrolled_Window_Gtk_Direction_Type_Void is not null access procedure
     (Self           : access Gtk_Scrolled_Window_Record'Class;
      Direction_Type : Gtk.Enums.Gtk_Direction_Type);

Cb_GObject_Gtk_Direction_Type_Void

type Cb_GObject_Gtk_Direction_Type_Void is not null access procedure
     (Self           : access Glib.Object.GObject_Record'Class;
      Direction_Type : Gtk.Enums.Gtk_Direction_Type);

Cb_Gtk_Scrolled_Window_Gtk_Scroll_Type_Boolean_Boolean

type Cb_Gtk_Scrolled_Window_Gtk_Scroll_Type_Boolean_Boolean is not null access function
     (Self       : access Gtk_Scrolled_Window_Record'Class;
      Scroll     : Gtk.Enums.Gtk_Scroll_Type;
      Horizontal : Boolean) return Boolean;

Cb_GObject_Gtk_Scroll_Type_Boolean_Boolean

type Cb_GObject_Gtk_Scroll_Type_Boolean_Boolean is not null access function
     (Self       : access Glib.Object.GObject_Record'Class;
      Scroll     : Gtk.Enums.Gtk_Scroll_Type;
      Horizontal : Boolean) return Boolean;

Constants & Global variables

Hscrollbar_Policy_Property (Gtk.Enums.Property_Gtk_Policy_Type)

Hscrollbar_Policy_Property : constant Gtk.Enums.Property_Gtk_Policy_Type;

Kinetic_Scrolling_Property (Glib.Properties.Property_Boolean)

Kinetic_Scrolling_Property : constant Glib.Properties.Property_Boolean;
The kinetic scrolling behavior flags. Kinetic scrolling only applies to devices with source GDK_SOURCE_TOUCHSCREEN

Min_Content_Height_Property (Glib.Properties.Property_Int)

Min_Content_Height_Property : constant Glib.Properties.Property_Int;
The minimum content height of Scrolled_Window, or -1 if not set.

Min_Content_Width_Property (Glib.Properties.Property_Int)

Min_Content_Width_Property : constant Glib.Properties.Property_Int;
The minimum content width of Scrolled_Window, or -1 if not set.

Vscrollbar_Policy_Property (Gtk.Enums.Property_Gtk_Policy_Type)

Vscrollbar_Policy_Property : constant Gtk.Enums.Property_Gtk_Policy_Type;

Window_Placement_Property (Gtk.Enums.Property_Gtk_Corner_Type)

Window_Placement_Property : constant Gtk.Enums.Property_Gtk_Corner_Type;

Window_Placement_Set_Property (Glib.Properties.Property_Boolean)

Window_Placement_Set_Property : constant Glib.Properties.Property_Boolean;
Whether "window-placement" should be used to determine the location of the contents with respect to the scrollbars. Otherwise, the "gtk-scrolled-window-placement" setting is used.

Signal_Move_Focus_Out (Glib.Signal_Name)

Signal_Move_Focus_Out : constant Glib.Signal_Name := "move-focus-out";

Signal_Scroll_Child (Glib.Signal_Name)

Signal_Scroll_Child : constant Glib.Signal_Name := "scroll-child";

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Scrolled_Window: out Gtk_Scrolled_Window;
Hadjustment: Gtk.Adjustment.Gtk_Adjustment := null;
Vadjustment: Gtk.Adjustment.Gtk_Adjustment := null);

Initialize

procedure Initialize 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record'Class;
Hadjustment: Gtk.Adjustment.Gtk_Adjustment := null;
Vadjustment: Gtk.Adjustment.Gtk_Adjustment := null);
Creates a new scrolled window. The two arguments are the scrolled window's adjustments; these will be shared with the scrollbars and the child widget to keep the bars in sync with the child. Usually you want to pass null for the adjustments, which will cause the scrolled window to create them for you. "hadjustment": horizontal adjustment "vadjustment": vertical adjustment

Gtk_Scrolled_Window_New

function Gtk_Scrolled_Window_New 
(Hadjustment: Gtk.Adjustment.Gtk_Adjustment := null;
Vadjustment: Gtk.Adjustment.Gtk_Adjustment := null) return Gtk_Scrolled_Window;
Creates a new scrolled window. The two arguments are the scrolled window's adjustments; these will be shared with the scrollbars and the child widget to keep the bars in sync with the child. Usually you want to pass null for the adjustments, which will cause the scrolled window to create them for you. "hadjustment": horizontal adjustment "vadjustment": vertical adjustment

Get_Type

function Get_Type return Glib.GType;

Add_With_Viewport

procedure Add_With_Viewport 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Child: not null access Gtk.Widget.Gtk_Widget_Record'Class);

Get_Capture_Button_Press

function Get_Capture_Button_Press 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Boolean;
Return whether button presses are captured during kinetic scrolling. See Gtk.Scrolled_Window.Set_Capture_Button_Press. Since: gtk+ 3.4

Set_Capture_Button_Press

procedure Set_Capture_Button_Press 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Capture_Button_Press: Boolean);
Changes the behaviour of Scrolled_Window wrt. to the initial event that possibly starts kinetic scrolling. When Capture_Button_Press is set to True, the event is captured by the scrolled window, and then later replayed if it is meant to go to the child widget. This should be enabled if any child widgets perform non-reversible actions on Gtk.Widget.Gtk_Widget::button-press-event. If they don't, and handle additionally handle Gtk.Widget.Gtk_Widget::grab-broken-event, it might be better to set Capture_Button_Press to False. This setting only has an effect if kinetic scrolling is enabled. Since: gtk+ 3.4 "capture_button_press": True to capture button presses

Get_Hadjustment

function Get_Hadjustment 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Adjustment.Gtk_Adjustment;
Returns the horizontal scrollbar's adjustment, used to connect the horizontal scrollbar to the child widget's horizontal scroll functionality.

Set_Hadjustment

procedure Set_Hadjustment 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Hadjustment: not null access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
Sets the Gtk.Adjustment.Gtk_Adjustment for the horizontal scrollbar. "hadjustment": horizontal scroll adjustment

Get_Hscrollbar

function Get_Hscrollbar 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Scrollbar.Gtk_Scrollbar;
Returns the horizontal scrollbar of Scrolled_Window. Since: gtk+ 2.8

Get_Kinetic_Scrolling

function Get_Kinetic_Scrolling 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Boolean;
Returns the specified kinetic scrolling behavior. Since: gtk+ 3.4

Set_Kinetic_Scrolling

procedure Set_Kinetic_Scrolling 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Kinetic_Scrolling: Boolean);
Turns kinetic scrolling on or off. Kinetic scrolling only applies to devices with source GDK_SOURCE_TOUCHSCREEN. Since: gtk+ 3.4 "kinetic_scrolling": True to enable kinetic scrolling

Get_Min_Content_Height

function Get_Min_Content_Height 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gint;
Gets the minimal content height of Scrolled_Window, or -1 if not set. Since: gtk+ 3.0

Set_Min_Content_Height

procedure Set_Min_Content_Height 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Height: Gint);
Sets the minimum height that Scrolled_Window should keep visible. Note that this can and (usually will) be smaller than the minimum size of the content. Since: gtk+ 3.0 "height": the minimal content height

Get_Min_Content_Width

function Get_Min_Content_Width 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gint;
Gets the minimum content width of Scrolled_Window, or -1 if not set. Since: gtk+ 3.0

Set_Min_Content_Width

procedure Set_Min_Content_Width 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Width: Gint);
Sets the minimum width that Scrolled_Window should keep visible. Note that this can and (usually will) be smaller than the minimum size of the content. Since: gtk+ 3.0 "width": the minimal content width

Get_Placement

function Get_Placement 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Enums.Gtk_Corner_Type;
Gets the placement of the contents with respect to the scrollbars for the scrolled window. See Gtk.Scrolled_Window.Set_Placement.

Set_Placement

procedure Set_Placement 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Window_Placement: Gtk.Enums.Gtk_Corner_Type);
Sets the placement of the contents with respect to the scrollbars for the scrolled window. The default is Gtk.Enums.Corner_Top_Left, meaning the child is in the top left, with the scrollbars underneath and to the right. Other values in Gtk.Enums.Gtk_Corner_Type are Gtk.Enums.Corner_Top_Right, Gtk.Enums.Corner_Bottom_Left, and Gtk.Enums.Corner_Bottom_Right. See also Gtk.Scrolled_Window.Get_Placement and Gtk.Scrolled_Window.Unset_Placement. "window_placement": position of the child window

Get_Policy

procedure Get_Policy 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Hscrollbar_Policy: out Gtk.Enums.Gtk_Policy_Type;
Vscrollbar_Policy: out Gtk.Enums.Gtk_Policy_Type);
Retrieves the current policy values for the horizontal and vertical scrollbars. See Gtk.Scrolled_Window.Set_Policy. "hscrollbar_policy": location to store the policy for the horizontal scrollbar, or null. "vscrollbar_policy": location to store the policy for the vertical scrollbar, or null.

Set_Policy

procedure Set_Policy 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Hscrollbar_Policy: Gtk.Enums.Gtk_Policy_Type;
Vscrollbar_Policy: Gtk.Enums.Gtk_Policy_Type);
Sets the scrollbar policy for the horizontal and vertical scrollbars. The policy determines when the scrollbar should appear; it is a value from the Gtk.Enums.Gtk_Policy_Type enumeration. If Gtk.Enums.Policy_Always, the scrollbar is always present; if Gtk.Enums.Policy_Never, the scrollbar is never present; if Gtk.Enums.Policy_Automatic, the scrollbar is present only if needed (that is, if the slider part of the bar would be smaller than the trough - the display is larger than the page size). "hscrollbar_policy": policy for horizontal bar "vscrollbar_policy": policy for vertical bar

Get_Shadow_Type

function Get_Shadow_Type 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Enums.Gtk_Shadow_Type;
Gets the shadow type of the scrolled window. See Gtk.Scrolled_Window.Set_Shadow_Type.

Set_Shadow_Type

procedure Set_Shadow_Type 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
The_Type: Gtk.Enums.Gtk_Shadow_Type);
Changes the type of shadow drawn around the contents of Scrolled_Window. "type": kind of shadow to draw around scrolled window contents

Get_Vadjustment

function Get_Vadjustment 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Adjustment.Gtk_Adjustment;
Returns the vertical scrollbar's adjustment, used to connect the vertical scrollbar to the child widget's vertical scroll functionality.

Set_Vadjustment

procedure Set_Vadjustment 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record;
Vadjustment: not null access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
Sets the Gtk.Adjustment.Gtk_Adjustment for the vertical scrollbar. "vadjustment": vertical scroll adjustment

Get_Vscrollbar

function Get_Vscrollbar 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record) return Gtk.Scrollbar.Gtk_Scrollbar;
Returns the vertical scrollbar of Scrolled_Window. Since: gtk+ 2.8

Unset_Placement

procedure Unset_Placement 
(Scrolled_Window: not null access Gtk_Scrolled_Window_Record);
Unsets the placement of the contents with respect to the scrollbars for the scrolled window. If no window placement is set for a scrolled window, it obeys the "gtk-scrolled-window-placement" XSETTING. See also Gtk.Scrolled_Window.Set_Placement and Gtk.Scrolled_Window.Get_Placement. Since: gtk+ 2.10

On_Move_Focus_Out

procedure On_Move_Focus_Out 
(Self: not null access Gtk_Scrolled_Window_Record;
Call: Cb_Gtk_Scrolled_Window_Gtk_Direction_Type_Void;
After: Boolean := False);

On_Move_Focus_Out

procedure On_Move_Focus_Out 
(Self: not null access Gtk_Scrolled_Window_Record;
Call: Cb_GObject_Gtk_Direction_Type_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
The ::move-focus-out signal is a <link linkend="keybinding-signals">keybinding signal</link> which gets emitted when focus is moved away from the scrolled window by a keybinding. The Gtk.Widget.Gtk_Widget::move-focus signal is emitted with Direction_Type on this scrolled windows toplevel parent in the container hierarchy. The default bindings for this signal are ['Tab''Ctrl'] and ['Tab''Ctrl''Shift'].

On_Scroll_Child

procedure On_Scroll_Child 
(Self: not null access Gtk_Scrolled_Window_Record;
Call: Cb_Gtk_Scrolled_Window_Gtk_Scroll_Type_Boolean_Boolean;
After: Boolean := False);

On_Scroll_Child

procedure On_Scroll_Child 
(Self: not null access Gtk_Scrolled_Window_Record;
Call: Cb_GObject_Gtk_Scroll_Type_Boolean_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
The ::scroll-child signal is a <link linkend="keybinding-signals">keybinding signal</link> which gets emitted when a keybinding that scrolls is pressed. The horizontal or vertical adjustment is updated which triggers a signal that the scrolled windows child may listen to and scroll itself. Callback parameters: -- "scroll": a Gtk.Enums.Gtk_Scroll_Type describing how much to scroll -- "horizontal": whether the keybinding scrolls the child horizontally or -- not