gtk-0.12.4: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellNone

Graphics.UI.Gtk.Misc.Viewport

Contents

Description

An adapter which makes widgets scrollable

Synopsis

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

 | GObject
 | +----Object
 | +----Widget
 | +----Container
 | +----Bin
 | +----Viewport

Types

Constructors

viewportNewSource

Arguments

:: Adjustment

hadjustment - horizontal adjustment.

-> Adjustment

vadjustment - vertical 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.

viewportSetShadowTypeSource

Arguments

:: ViewportClass self 
=> self 
-> ShadowType

type - the new shadow type.

-> IO () 

Sets the shadow type of the viewport.

viewportGetShadowTypeSource

Arguments

:: ViewportClass self 
=> self 
-> IO ShadowType

returns the shadow type

Gets the shadow type of the Viewport. See viewportSetShadowType.

viewportGetBinWindow :: ViewportClass self => self -> IO DrawWindowSource

Gets the bin window of the Viewport.

  • Available since Gtk version 2.20

viewportGetViewWindow :: ViewportClass self => self -> IO DrawWindowSource

Gets the view window of the Viewport.

  • Available since Gtk+ version 2.22

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