Gtk2HsContentsIndex
Graphics.UI.Gtk.Scrolling.ScrolledWindow
Description

ScrolledWindow is a container that adds scroll bars to its child

  • Some widgets have native scrolling support, in which case the scrolling action is performed by the child itself (e.g. a TreeView widget does this by only moving the table part and not the titles of a table). If a widget does not support native scrolling it can be put into a ScrolledWindow widget.
Synopsis
data ScrolledWindow
class BinClass o => ScrolledWindowClass o
castToScrolledWindow :: GObjectClass obj => obj -> ScrolledWindow
scrolledWindowNew :: Maybe Adjustment -> Maybe Adjustment -> IO ScrolledWindow
scrolledWindowGetHAdjustment :: ScrolledWindowClass w => w -> IO Adjustment
scrolledWindowGetVAdjustment :: ScrolledWindowClass w => w -> IO Adjustment
data PolicyType
= PolicyAlways
| PolicyAutomatic
| PolicyNever
scrolledWindowSetPolicy :: ScrolledWindowClass w => w -> PolicyType -> PolicyType -> IO ()
scrolledWindowGetPolicy :: ScrolledWindowClass w => w -> IO (PolicyType, PolicyType)
scrolledWindowAddWithViewport :: (ScrolledWindowClass w, WidgetClass wid) => w -> wid -> IO ()
data CornerType
= CornerTopLeft
| CornerBottomLeft
| CornerTopRight
| CornerBottomRight
scrolledWindowSetPlacement :: ScrolledWindowClass w => w -> CornerType -> IO ()
scrolledWindowGetPlacement :: ScrolledWindowClass w => w -> IO CornerType
data ShadowType
= ShadowNone
| ShadowIn
| ShadowOut
| ShadowEtchedIn
| ShadowEtchedOut
scrolledWindowSetShadowType :: ScrolledWindowClass w => w -> ShadowType -> IO ()
scrolledWindowGetShadowType :: ScrolledWindowClass w => w -> IO ShadowType
scrolledWindowSetHAdjustment :: ScrolledWindowClass w => w -> Adjustment -> IO ()
scrolledWindowSetVAdjustment :: ScrolledWindowClass w => w -> Adjustment -> IO ()
Documentation
data ScrolledWindow
Instances
ScrolledWindowClass ScrolledWindow
BinClass ScrolledWindow
ContainerClass ScrolledWindow
WidgetClass ScrolledWindow
ObjectClass ScrolledWindow
GObjectClass ScrolledWindow
class BinClass o => ScrolledWindowClass o
Instances
ScrolledWindowClass ScrolledWindow
castToScrolledWindow :: GObjectClass obj => obj -> ScrolledWindow
scrolledWindowNew :: Maybe Adjustment -> Maybe Adjustment -> IO ScrolledWindow
Create a new ScrolledWindow.
scrolledWindowGetHAdjustment :: ScrolledWindowClass w => w -> IO Adjustment
Retrieve the horizontal Adjustment of the ScrolledWindow.
scrolledWindowGetVAdjustment :: ScrolledWindowClass w => w -> IO Adjustment
Retrieve the vertical Adjustment of the ScrolledWindow.
data PolicyType
Scrollbar policy types (for scrolled windows)
Constructors
PolicyAlways
PolicyAutomatic
PolicyNever
Instances
Enum PolicyType
scrolledWindowSetPolicy :: ScrolledWindowClass w => w -> PolicyType -> PolicyType -> IO ()
Specify if the scrollbars should vanish if the child size is sufficiently small.
scrolledWindowGetPolicy :: ScrolledWindowClass w => w -> IO (PolicyType, PolicyType)
Retrieves the current policy values for the horizontal and vertical scrollbars.
scrolledWindowAddWithViewport :: (ScrolledWindowClass w, WidgetClass wid) => w -> wid -> IO ()
Add a child widget without native scrolling support to this ScrolledWindow.
data CornerType
Specifies in which corner a child widget should be placed
Constructors
CornerTopLeft
CornerBottomLeft
CornerTopRight
CornerBottomRight
Instances
Enum CornerType
scrolledWindowSetPlacement :: ScrolledWindowClass w => w -> CornerType -> IO ()
Specify where the scrollbars should be placed.
scrolledWindowGetPlacement :: ScrolledWindowClass w => w -> IO CornerType
Gets the placement of the scrollbars for the scrolled window.
data ShadowType
Shadow types
Constructors
ShadowNone
ShadowIn
ShadowOut
ShadowEtchedIn
ShadowEtchedOut
Instances
Enum ShadowType
scrolledWindowSetShadowType :: ScrolledWindowClass w => w -> ShadowType -> IO ()
Specify if and how an outer frame should be drawn around the child.
scrolledWindowGetShadowType :: ScrolledWindowClass w => w -> IO ShadowType
Gets the shadow type of the scrolled window.
scrolledWindowSetHAdjustment :: ScrolledWindowClass w => w -> Adjustment -> IO ()
Set the horizontal Adjustment of the ScrolledWindow.
scrolledWindowSetVAdjustment :: ScrolledWindowClass w => w -> Adjustment -> IO ()
Set the vertical Adjustment of the ScrolledWindow.
Produced by Haddock version 0.6