Gtk2::E...::Button(3)
π Gtk2::Ex::FormFactory::Button β bestie edition π
okay so this is a page from the User Contributed Perl Documentation for Gtk2::E...::Button(3), and honestly? it's a lil button module and it's iconic. let's get into it β¨
β¨ NAME β¨
Gtk2::Ex::FormFactory::Button β it's a Button in a FormFactory framework. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
here's how you summon one, fr fr:
Gtk2::Ex::FormFactory::Button->new (
clicked_hook => Callback CODEREF / Closure
stock => Name of a stock item for this button,
with_repeat => Trigger callback continuously as long button is pressed,
image => Filename of image to put on button,
...
Gtk2::Ex::FormFactory::Widget attributes
);
she's giving constructor energy. the ... is doing a lot of heavy lifting but we move π«Ά
π¦ DESCRIPTION π¦
This module implements a Button in a Gtk2::Ex::FormFactory framework.
and here's the tea bestie: no application object attribute is associated with the button. like, zero. none. she's free. no cap. π
π OBJECT HIERARCHY π
the family tree, and yes we're putting it in a code block because we respect it:
Gtk2::Ex::FormFactory::Intro
Gtk2::Ex::FormFactory::Widget
+--- Gtk2::Ex::FormFactory::Button
Gtk2::Ex::FormFactory::Layout
Gtk2::Ex::FormFactory::Rules
Gtk2::Ex::FormFactory::Context
Gtk2::Ex::FormFactory::Proxy
Gtk2::Ex::FormFactory::Button is a direct child of Gtk2::Ex::FormFactory::Widget and honestly it's giving main character energy π
π ATTRIBUTES π
Attributes are handled through the common get_ATTR(), set_ATTR() style accessors, but β important β they are mostly passed once to the object constructor and must not be altered after the associated FormFactory was built. like, don't touch after. periodt.
clicked_hook=CODEREF[optional]β this is for convenience, and it connects theCODEREFto theclickedsignal of the button. she's a shortcut and she knows it πstock=SCALAR[optional]β you may specify the name of a stock item here, which should be added to the button, e.g.'gtk-edit'for the standard Gtk Edit stock item. and you may combinestockandlabelarbitrarily β mix and match bestie, go off β¨with_repeat=BOOLEAN[optional]β if you set this option theclicked_hookis called continuously as long as the button is pressed, with a initial short delay, just similar to keyboard repetition. yes like when you hold down a key on your keyboard. obsessed. π₯image=FILENAME[optional]β use just this image for the button. No additional label is applied. so it's the picture and nothing else, no caption, no notes. π
For more attributes refer to Gtk2::Ex::FormFactory::Widget. iykyk.
π§ AUTHORS π§
JΓΆrn Reder <joern at zyn dot de> β the icon who made this π«Ά
β 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.
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.
okay real talk: that "WITHOUT ANY WARRANTY" bit is in ALL CAPS in the original for a reason β it's not a joke, it genuinely means no promises. noted. π
π POD ERRORS π
not me finding out the docs themselves had a lil oopsie π
Hey! The above document had some coding errors, which are explained below:
Around line 109: Non-ASCII character seen before =encoding in 'JΓΆrn'. Assuming UTF-8
so basically the ΓΆ in JΓΆrn showed up before any =encoding declaration and Perl just went "eh, assuming UTF-8" β honestly relatable, that's the most chill error handling ever π
and that's the whole page, bestie!! this came from perl v5.42.0, dated 2025-07-25, under the Gtk2::E...::Button(3) page from the User Contributed Perl Documentation. go forth and button πβ¨π
π¦ 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