Gtk2::ScrolledWindow(3) User Contributed Perl Documentation Gtk2::ScrolledWindow(3)

Gtk2::ScrolledWindow - wrapper for GtkScrolledWindow

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::ScrolledWindow

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable

  • $hadjustment (Gtk2::Adjustment or undef)
  • $vadjustment (Gtk2::Adjustment or undef)

$scrolled_window->add_with_viewport ($child)

$child (Gtk2::Widget)

adjustment = $scrolled_window->get_hadjustment

$scrolled_window->set_hadjustment ($hadjustment)

$hadjustment (Gtk2::Adjustment)

widget or undef = $scrolled_window->get_hscrollbar

Since: gtk+ 2.8

$scrolled_window->set_placement ($window_placement)

$window_placement (Gtk2::CornerType)

$scrolled_window->set_policy ($hscrollbar_policy, $vscrollbar_policy)

  • $hscrollbar_policy (Gtk2::PolicyType)
  • $vscrollbar_policy (Gtk2::PolicyType)

$scrolled_window->set_shadow_type ($type)

$type (Gtk2::ShadowType)

Since: gtk+ 2.10

adjustment = $scrolled_window->get_vadjustment

$scrolled_window->set_vadjustment ($hadjustment)

$hadjustment (Gtk2::Adjustment)

widget or undef = $scrolled_window->get_vscrollbar

Since: gtk+ 2.8

'hadjustment' (Gtk2::Adjustment : default undef : readable / writable / construct / private / static-nick / static-blurb)
The GtkAdjustment for the horizontal position
'hscrollbar-policy' (Gtk2::PolicyType : default "always" : readable / writable / private / static-nick / static-blurb)
When the horizontal scrollbar is displayed
'shadow-type' (Gtk2::ShadowType : default "none" : readable / writable / private / static-nick / static-blurb)
Style of bevel around the contents
'vadjustment' (Gtk2::Adjustment : default undef : readable / writable / construct / private / static-nick / static-blurb)
The GtkAdjustment for the vertical position
'vscrollbar-policy' (Gtk2::PolicyType : default "always" : readable / writable / private / static-nick / static-blurb)
When the vertical scrollbar is displayed
'window-placement' (Gtk2::CornerType : default "top-left" : readable / writable / private / static-nick / static-blurb)
Where the contents are located with respect to the scrollbars. This property only takes effect if "window-placement-set" is TRUE.
'window-placement-set' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether "window-placement" should be used to determine the location of the contents with respect to the scrollbars.

'scrollbar-spacing' (integer : default 3 : readable / private / static-nick / static-blurb)
Number of pixels between the scrollbars and the scrolled window
'scrollbars-within-bevel' (boolean : default false : readable / private / static-nick / static-blurb)
Place scrollbars within the scrolled window's bevel

  • 'top-left' / 'GTK_CORNER_TOP_LEFT'
  • 'bottom-left' / 'GTK_CORNER_BOTTOM_LEFT'
  • 'top-right' / 'GTK_CORNER_TOP_RIGHT'
  • 'bottom-right' / 'GTK_CORNER_BOTTOM_RIGHT'

  • 'tab-forward' / 'GTK_DIR_TAB_FORWARD'
  • 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
  • 'up' / 'GTK_DIR_UP'
  • 'down' / 'GTK_DIR_DOWN'
  • 'left' / 'GTK_DIR_LEFT'
  • 'right' / 'GTK_DIR_RIGHT'

  • 'always' / 'GTK_POLICY_ALWAYS'
  • 'automatic' / 'GTK_POLICY_AUTOMATIC'
  • 'never' / 'GTK_POLICY_NEVER'

  • 'none' / 'GTK_SCROLL_NONE'
  • 'jump' / 'GTK_SCROLL_JUMP'
  • 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
  • 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
  • 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
  • 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
  • 'step-up' / 'GTK_SCROLL_STEP_UP'
  • 'step-down' / 'GTK_SCROLL_STEP_DOWN'
  • 'page-up' / 'GTK_SCROLL_PAGE_UP'
  • 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
  • 'step-left' / 'GTK_SCROLL_STEP_LEFT'
  • 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
  • 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
  • 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
  • 'start' / 'GTK_SCROLL_START'
  • 'end' / 'GTK_SCROLL_END'

  • 'none' / 'GTK_SHADOW_NONE'
  • 'in' / 'GTK_SHADOW_IN'
  • 'out' / 'GTK_SHADOW_OUT'
  • 'etched-in' / 'GTK_SHADOW_ETCHED_IN'
  • 'etched-out' / 'GTK_SHADOW_ETCHED_OUT'

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2023-07-25 perl v5.38.0