Next: , Previous: GtkTooltips, Up: Top


124 GtkViewport

An adapter which makes widgets scrollable

124.1 Overview

124.2 Usage

— Class: <gtk-viewport>

Derives from <gtk-bin>.

This class defines the following slots:

hadjustment
The GtkAdjustment that determines the values of the horizontal position for this viewport
vadjustment
The GtkAdjustment that determines the values of the vertical position for this viewport
shadow-type
Determines how the shadowed box around the viewport is drawn
— Signal on <gtk-viewport>: set-scroll-adjustments (arg0 <gtk-adjustment>) (arg1 <gtk-adjustment>)
— Function: gtk-viewport-new (hadjustment <gtk-adjustment>) (vadjustment <gtk-adjustment>) ⇒  (ret <gtk-widget>)

Creates a new <gtk-viewport> with the given adjustments.

hadjustment
horizontal adjustment.
vadjustment
vertical adjustment.
ret
a new <gtk-viewport>.
— Function: gtk-viewport-get-hadjustment (self <gtk-viewport>) ⇒  (ret <gtk-adjustment>)
— Method: get-hadjustment

Returns the horizontal adjustment of the viewport.

viewport
a <gtk-viewport>.
ret
the horizontal adjustment of viewport.
— Function: gtk-viewport-get-vadjustment (self <gtk-viewport>) ⇒  (ret <gtk-adjustment>)
— Method: get-vadjustment

Returns the vertical adjustment of the viewport.

viewport
a <gtk-viewport>.
ret
the vertical adjustment of viewport.
— Function: gtk-viewport-set-hadjustment (self <gtk-viewport>) (adjustment <gtk-adjustment>)
— Method: set-hadjustment

Sets the horizontal adjustment of the viewport.

viewport
a <gtk-viewport>.
adjustment
a <gtk-adjustment>.
— Function: gtk-viewport-set-vadjustment (self <gtk-viewport>) (adjustment <gtk-adjustment>)
— Method: set-vadjustment

Sets the vertical adjustment of the viewport.

viewport
a <gtk-viewport>.
adjustment
a <gtk-adjustment>.
— Function: gtk-viewport-set-shadow-type (self <gtk-viewport>) (type <gtk-shadow-type>)
— Method: set-shadow-type

Sets the shadow type of the viewport.

viewport
a <gtk-viewport>.
type
the new shadow type.
— Function: gtk-viewport-get-shadow-type (self <gtk-viewport>) ⇒  (ret <gtk-shadow-type>)
— Method: get-shadow-type

Gets the shadow type of the <gtk-viewport>. See gtk-viewport-set-shadow-type.

viewport
a <gtk-viewport>
ret
the shadow type