GtkScrolledWindow

GtkScrolledWindow

Adds scrollbars to its child widget.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkScrolledWindow

Direct subclasses

None.

Description

A GtkScrolledWindow is a window that can supply a scrollable child widget with scrollbars.

The scrollbars take their adjustment settings from the child widget and do not need adjustment configuration. Children that are not scrollable therefore need to be packed into a widget that has scrolling awareness. GtkViewport is one such widget, and can be added and configured automatically using the convenience method add_with_viewport() . The other widget that can be used for this purpose is GtkLayout, which allows multiple children to be given fixed positions and provides scrollbars.

The scrolling-aware widgets are: GtkCList, GtkCTree, GtkLayout, GtkScrolledWindow, GtkText and the catch-all GtkViewport.

Note that any scroll key bindings are taken from the child widget in the GtkScrolledWindow, and not from the scrollbars themselves.

Constructor

GtkScrolledWindow ([ GtkAdjustment hadjustment = NULL , [ GtkAdjustment vadjustment = NULL ]]);
-- Creates a scrolling window.

Methods

get_hadjustment()
  Returns the horizontal adjustment object.
get_vadjustment()
  Returns the vertical adjustment object.
set_policy()
  Sets scrollbar visibility policies.
set_placement()
  Sets scrollbar positions.
add_with_viewport()
  Convenience method for adding non-scrolling widgets.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.