Gtk2::Socket(3)
π Gtk2::Socket π
okay bestie, welcome to Gtk2::Socket β it's the wrapper for GtkSocket, living its best life in the User Contributed Perl Documentation section. yes, section 3. the library-calls one. iconic behavior.
π HIERARCHY π
here's the family tree, and yes it's giving ancestry.com:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Socket
so Gtk2::Socket is the baby of the family, deep down at the bottom, but that just means it inherited <em>everything</em>. main character energy fr.
β¨ INTERFACES β¨
these are the vibes it also carries around, like little accessories:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
π METHODS π
okay so here's everything you can actually do with it. no cap, this is the whole list.
widget = Gtk2::Socket->newβ make a fresh new socket, just like that. brand new, no notes. π«Ά$socket->add_id ($window_id)β stick a window id in there. the argument:$window_id(Gtk2::Gdk::NativeWindow)
nativewindow = $socket->get_idβ hand back the native window. it's giving "let me see your id" but make it β¨graphicsβ¨.window or undef = $socket_->get_plug_windowβ get the plug window, and heads up, it might come backundef. so like, check before you use it bestie. π- Since:
gtk+ 2.14
- Since:
$socket->steal ($wid)β steal that window. yes literally steal, the name is not a metaphor. argument:$wid(Gtk2::Gdk::NativeWindow)
π SIGNALS π
these are the little notifications your socket sends out into the group chat:
plug-added (Gtk2::Socket)boolean = plug-removed (Gtk2::Socket)
π SEE ALSO π
go read these too, they're the friends-of-the-page:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::Container
Β©οΈ COPYRIGHT Β©οΈ
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice. legal stuff, but make it cute β you still gotta read it tho. π
and that's the whole page, bestie!! π this was brought to you by perl v5.42.0, dated 2025-07-25, Gtk2::Socket(3) π slay, go build something with a socket in it π¦ β¨ bye pookie π
π¦ 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