Gtk2::S...dWindow(3)
β¨ 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β aGtk2::Adjustmentorundef(horizontal vibes)$vadjustmentβ aGtk2::Adjustmentorundef(vertical vibes)
$scrolled_window->add_with_viewport ($child)
add a child through the viewport, iconic behaviour:
$childβ aGtk2::Widget
adjustment = $scrolled_window->get_hadjustment
$scrolled_window->set_hadjustment ($hadjustment)
get/set the horizontal adjustment, periodt:
$hadjustmentβ aGtk2::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β aGtk2::CornerType
list = $scrolled_window->get_policy
$scrolled_window->set_policy ($hscrollbar_policy, $vscrollbar_policy)
the scrollbar policies bestie, both axes:
$hscrollbar_policyβ aGtk2::PolicyType$vscrollbar_policyβ aGtk2::PolicyType
shadowtype = $scrolled_window->get_shadow_type
$scrolled_window->set_shadow_type ($type)
the bevel aesthetic check β¨
$typeβ aGtk2::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β aGtk2::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: defaultundef: readable / writable / construct / private / static-nick / static-blurb) β theGtkAdjustmentfor 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: defaultundef: readable / writable / construct / private / static-nick / static-blurb) β theGtkAdjustmentfor 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"isTRUE. π'window-placement-set'(boolean: defaultfalse: 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: default3: readable / private / static-nick / static-blurb) β number of pixels between the scrollbars and the scrolled window'scrollbars-within-bevel'(boolean: defaultfalse: 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 π
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms