Gtk2::HandleBox(3)
π Gtk2::HandleBox β the manual, but make it cute π
okay bestie, so this is Gtk2::HandleBox, straight out of the User Contributed Perl Documentation collection (yes, that's the manual name, it's giving β¨community-maintainedβ¨ and we love that for us). It's the Perl wrapper for GtkHandleBox. Think of it as the widget that can βοΈ detach itself from its parent window and float around like it owns the place. main character energy fr fr.
β¨ NAME β¨
Gtk2::HandleBox β a wrapper for GtkHandleBox π«Ά
πΈ HIERARCHY πΈ
the family tree, no cap:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::HandleBox
π¦ INTERFACES π¦
the vibes it implements:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
π METHODS π
widget = Gtk2::HandleBox->new
make a whole new handle box. iconic. β¨
boolean = $handle_box->get_child_detached
tells you whether the child is currently detached (aka out here living its own life) or still attached. π₯
positiontype = $handle_box->get_handle_position
$handle_box->set_handle_position ($position)
$position(Gtk2::PositionType) β where the handle sits
shadowtype = $handle_box->get_shadow_type
$handle_box->set_shadow_type ($type)
$type(Gtk2::ShadowType) β what kind of shadow it's serving
positiontype = $handle_box->get_snap_edge
$handle_box->set_snap_edge ($edge)
$edge(Gtk2::PositionType) β which edge snaps to the docking point
π PROPERTIES π
'child-detached'(boolean: defaultfalse: readable / private / static-nick / static-blurb) β a boolean value indicating whether the handlebox's child is attached or detached. π the plot twist detector.'handle-position'(Gtk2::PositionType: default"left": readable / writable / private / static-nick / static-blurb) β position of the handle relative to the child widget.'shadow'(Gtk2::ShadowType: default"out": readable / writable / private / static-nick / static-blurb / deprecated) β deprecated property, useshadow_typeinstead. yeah it's old, we don't talk about it. π'shadow-type'(Gtk2::ShadowType: default"out": readable / writable / private / static-nick / static-blurb) β appearance of the shadow that surrounds the container.'snap-edge'(Gtk2::PositionType: default"top": readable / writable / private / static-nick / static-blurb) β side of the handlebox that's lined up with the docking point to dock the handlebox.'snap-edge-set'(boolean: defaultfalse: readable / writable / private / static-nick / static-blurb) β whether to use the value from thesnap_edgeproperty or a value derived fromhandle_position.
β SIGNALS β
child-attached(Gtk2::HandleBox,Gtk2::Widget)child-detached(Gtk2::HandleBox,Gtk2::Widget)
π ENUMS AND FLAGS π
enum Gtk2::PositionType
'left'/GTK_POS_LEFT'right'/GTK_POS_RIGHT'top'/GTK_POS_TOP'bottom'/GTK_POS_BOTTOM
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 next, iykyk:
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.
and that's the whole page, bestie π«Ά this one's from perl v5.42.0, dated 2025-07-25, filed under User Contributed Perl Documentation β periodt. go forth and detach those handle boxes responsibly π β¨
π¦ 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