| Portability | portable (depends on GHC) |
|---|---|
| Stability | provisional |
| Maintainer | [email protected] |
Graphics.UI.Gtk.Misc.Viewport
Description
An adapter which makes widgets scrollable
- data Viewport
- class BinClass o => ViewportClass o
- castToViewport :: GObjectClass obj => obj -> Viewport
- gTypeViewport :: GType
- toViewport :: ViewportClass o => o -> Viewport
- viewportNew :: Adjustment -> Adjustment -> IO Viewport
- viewportGetHAdjustment :: ViewportClass self => self -> IO Adjustment
- viewportGetVAdjustment :: ViewportClass self => self -> IO Adjustment
- viewportSetHAdjustment :: ViewportClass self => self -> Adjustment -> IO ()
- viewportSetVAdjustment :: ViewportClass self => self -> Adjustment -> IO ()
- data ShadowType
- = ShadowNone
- | ShadowIn
- | ShadowOut
- | ShadowEtchedIn
- | ShadowEtchedOut
- viewportSetShadowType :: ViewportClass self => self -> ShadowType -> IO ()
- viewportGetShadowType :: ViewportClass self => self -> IO ShadowType
- viewportHAdjustment :: ViewportClass self => Attr self Adjustment
- viewportVAdjustment :: ViewportClass self => Attr self Adjustment
- viewportShadowType :: ViewportClass self => Attr self ShadowType
Detail
A Viewport is 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.
Class Hierarchy
Types
class BinClass o => ViewportClass o Source
Instances
castToViewport :: GObjectClass obj => obj -> ViewportSource
toViewport :: ViewportClass o => o -> ViewportSource
Constructors
Arguments
| :: Adjustment |
|
| -> Adjustment |
|
| -> IO Viewport |
Creates a new Viewport with the given adjustments.
Methods
viewportGetHAdjustment :: ViewportClass self => self -> IO AdjustmentSource
Returns the horizontal adjustment of the viewport.
viewportGetVAdjustment :: ViewportClass self => self -> IO AdjustmentSource
Returns the vertical adjustment of the viewport.
viewportSetHAdjustment :: ViewportClass self => self -> Adjustment -> IO ()Source
Sets the horizontal adjustment of the viewport.
viewportSetVAdjustment :: ViewportClass self => self -> Adjustment -> IO ()Source
Sets the vertical adjustment of the viewport.
data ShadowType Source
Shadow types
Constructors
| ShadowNone | |
| ShadowIn | |
| ShadowOut | |
| ShadowEtchedIn | |
| ShadowEtchedOut |
Instances
Arguments
| :: ViewportClass self | |
| => self | |
| -> ShadowType |
|
| -> IO () |
Sets the shadow type of the viewport.
Arguments
| :: ViewportClass self | |
| => self | |
| -> IO ShadowType | returns the shadow type |
Gets the shadow type of the Viewport. See viewportSetShadowType.
Attributes
viewportHAdjustment :: ViewportClass self => Attr self AdjustmentSource
The Adjustment that determines the values of the horizontal position
for this viewport.
viewportVAdjustment :: ViewportClass self => Attr self AdjustmentSource
The Adjustment that determines the values of the vertical position for
this viewport.
viewportShadowType :: ViewportClass self => Attr self ShadowTypeSource
Determines how the shadowed box around the viewport is drawn.
Default value: ShadowIn