Gtk2::E...::Window(3)
π Gtk2::E...::Window(3) π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's all about Gtk2::Ex::FormFactory::Window β yes the name is doing the absolute most, but stay with me, it's iconic. π«Ά
β¨ NAME β¨
Gtk2::Ex::FormFactory::Window β a Window in a FormFactory framework. that's it, that's the name, no notes. π
πΈ SYNOPSIS πΈ
look at this little beauty:
Gtk2::Ex::FormFactory::Window->new (
closed_hook => Code reference to be called on window close,
quit_on_close => Quit Gtk2 mainloop if windows is closed
...
Gtk2::Ex::FormFactory::Container attributes
Gtk2::Ex::FormFactory::Widget attributes
);
so you're constructing it, you're passing a closed_hook, you're passing quit_on_close, and then the ... is just vibes meaning "and also all the Container and Widget attributes, iykyk". π¦
π DESCRIPTION π
so this class implements a Window inside a Gtk2::Ex::FormFactory framework. that's the whole job. the window title? it can be controlled by an associated application object. main character energy fr. π
and here's the part that's genuinely so good: by default a Window automatically gets implemented with a VBox. which means β and this is the slay β you can add more than one widget to a Gtk2::Ex::FormFactory::Window, unlike with a plain old Gtk2::Window. one widget? in this economy?? no bestie, we're stacking them. π§
Note: if a window has a Gtk2::Ex::FormFactory parent, the FormFactory is closed automatically when the window gets destroyed. automatic cleanup, we love to see it. β¨
π OBJECT HIERARCHY π
here's the family tree, the lineage, the ancestry.com moment:
Gtk2::Ex::FormFactory::Intro
Gtk2::Ex::FormFactory::Widget
+--- Gtk2::Ex::FormFactory::Container
+--- Gtk2::Ex::FormFactory::Window
Gtk2::Ex::FormFactory::Layout
Gtk2::Ex::FormFactory::Rules
Gtk2::Ex::FormFactory::Context
Gtk2::Ex::FormFactory::Proxy
see how Window is nested under Container which is nested under Widget? generational talent honestly. π
π ATTRIBUTES π
okay so attributes get handled through the common get_ATTR(), set_ATTR() style accessors β very standard, very demure. but they're mostly meant to be passed once to the object constructor, and you must not alter them after the associated FormFactory was built. set it and forget it, bestie. π
closed_hook= CODEREF [optional] β this code reference gets called when the window gets destroyed. like, for example, when the user closes the window using the window manager's close button, or when the program callsGtkWindow->destroydirectly. if noclosed_hookis set, an internal hook is connected which closes theGtk2::Ex::FormFactoryof this Window. so it's covered either way. π«Άquit_on_close= BOOL [optional] β if this is set to true, the Gtk2 mainloop quits when the window is closed and noclosed_hookis set. but if you do use aclosed_hook, quitting the mainloop is up to you. your window, your rules. π
π AUTHORS π
JΓΆrn Reder <joern at zyn dot de> β thank you for your service, legend. π«‘
β COPYRIGHT AND LICENSE β
Copyright 2004-2006 by JΓΆrn Reder.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. (no warranty bestie, none, zero, nada π)
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
π POD ERRORS π
not the doc having coding errors lmaooo. here's what went down:
Around line 109:
- Non-ASCII character seen before
=encodingin'JΓΆrn'. Assuming UTF-8
the ΓΆ said "I'm not explaining myself" and honestly? valid. π
and that's the whole page, bestie! this one shipped with perl v5.42.0, dated 2025-07-25 β go forth and build windows with multiple widgets, you absolute icon π β¨π
π¦ where this page comes from
- fedora 43: perl-Gtk2-Ex-FormFactory 0.67-39.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms