gtk2hsContentsIndex
Viewport
Description

A Viewport a helper widget that adds Adjustment slots to a widget, i.e. the widget becomes scrollable. It can then be put into ScrolledWindow and will behave as expected.

  • The binding of this widget is superfluous as far as I can tell.
  • The only signal this widget registers is "set-scroll-adjustments". It is not bound because it is meant to be received by the Viewport and sent by ScrolledWindow.
Synopsis
viewportNew :: Adjustment -> Adjustment -> IO Viewport
viewportGetHAdjustment :: ViewportClass v => v -> IO Adjustment
viewportGetVAdjustment :: ViewportClass v => v -> IO Adjustment
viewportSetHAdjustment :: ViewportClass v => v -> Adjustment -> IO ()
viewportSetVAdjustment :: ViewportClass v => v -> Adjustment -> IO ()
data ShadowType
= ShadowNone
| ShadowIn
| ShadowOut
| ShadowEtchedIn
| ShadowEtchedOut
viewportSetShadowType :: ViewportClass v => v -> ShadowType -> IO ()
viewportGetShadowType :: ViewportClass v => v -> IO ShadowType
Documentation
viewportNew :: Adjustment -> Adjustment -> IO Viewport
Create a new Viewport.
viewportGetHAdjustment :: ViewportClass v => v -> IO Adjustment
Retrieve the horizontal Adjustment of the Viewport.
viewportGetVAdjustment :: ViewportClass v => v -> IO Adjustment
Retrieve the vertical Adjustment of the Viewport.
viewportSetHAdjustment :: ViewportClass v => v -> Adjustment -> IO ()
Set the horizontal Adjustment of the Viewport.
viewportSetVAdjustment :: ViewportClass v => v -> Adjustment -> IO ()
Set the vertical Adjustment of the Viewport.
data ShadowType
shadow types
Constructors
ShadowNone
ShadowIn
ShadowOut
ShadowEtchedIn
ShadowEtchedOut
Instances
Enum ShadowType
viewportSetShadowType :: ViewportClass v => v -> ShadowType -> IO ()
Specify if and how an outer frame should be drawn around the child.
viewportGetShadowType :: ViewportClass v => v -> IO ShadowType
Get the current shadow type of the Viewport.
Produced by Haddock version 0.6