Gtk2::S...dWindow(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

✨ NAME ✨

okay bestie so like, this page is Gtk2::ScrolledWindow β€” literally just a wrapper for GtkScrolledWindow πŸ’… that's it that's the name. it's a Perl thing from the User Contributed Perl Documentation, which is giving very much "the people's manpage" energy 🫢


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and yes she has a long lineage, main character energy from birth:

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

🌸 INTERFACES 🌸

she also implements these, no big deal:

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

πŸ’– METHODS πŸ’–

widget = Gtk2::ScrolledWindow->new ($hadjustment=undef, $vadjustment=undef)

make a brand new one, slay. the args:

  • $hadjustment β€” a Gtk2::Adjustment or undef (horizontal vibes)
  • $vadjustment β€” a Gtk2::Adjustment or undef (vertical vibes)

$scrolled_window->add_with_viewport ($child)

add a child through the viewport, iconic behaviour:

  • $child β€” a Gtk2::Widget

adjustment = $scrolled_window->get_hadjustment

$scrolled_window->set_hadjustment ($hadjustment)

get/set the horizontal adjustment, periodt:

  • $hadjustment β€” a Gtk2::Adjustment

widget or undef = $scrolled_window->get_hscrollbar

grabs the horizontal scrollbar widget (or undef, she's mysterious like that). Since: gtk+ 2.8

cornertype = $scrolled_window->get_placement

$scrolled_window->set_placement ($window_placement)

where the contents sit relative to the scrollbars:

  • $window_placement β€” a Gtk2::CornerType

list = $scrolled_window->get_policy

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

the scrollbar policies bestie, both axes:

  • $hscrollbar_policy β€” a Gtk2::PolicyType
  • $vscrollbar_policy β€” a Gtk2::PolicyType

shadowtype = $scrolled_window->get_shadow_type

$scrolled_window->set_shadow_type ($type)

the bevel aesthetic check ✨

  • $type β€” a Gtk2::ShadowType

$scrolled_window->unset_placement

yeets the placement setting. Since: gtk+ 2.10

adjustment = $scrolled_window->get_vadjustment

$scrolled_window->set_vadjustment ($hadjustment)

get/set the vertical adjustment:

  • $hadjustment β€” a Gtk2::Adjustment
ngl the setter param is literally named $hadjustment in the original. not me fixing it, i would NEVER πŸ™ˆ keeping it exactly as-is because facts are sacred.

widget or undef = $scrolled_window->get_vscrollbar

the vertical scrollbar widget, or undef. Since: gtk+ 2.8


πŸŽ€ PROPERTIES πŸŽ€

  • '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

🌈 STYLE PROPERTIES 🌈

  • '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

πŸ”₯ SIGNALS πŸ”₯

  • move-focus-out (Gtk2::ScrolledWindow, Gtk2::DirectionType)
  • boolean = scroll-child (Gtk2::ScrolledWindow, Gtk2::ScrollType, boolean)

πŸ’œ ENUMS AND FLAGS πŸ’œ

enum Gtk2::CornerType

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

enum Gtk2::DirectionType

  • '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

enum Gtk2::PolicyType

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

enum Gtk2::ScrollType

  • '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

enum Gtk2::ShadowType

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

🧚 SEE ALSO 🧚

go read these too bestie, they're all connected:

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.


okay that's the whole page, you ate that πŸ’… this was Gtk2::S...dWindow(3), written up by the User Contributed Perl Documentation crew, running on perl v5.42.0 and dated 2025-07-25 β€” mwah, go build something cute πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from