Gtk2::E...::Button(3)

πŸ“¦
version 0.67 Β· 2 versions
, in fedora 43

πŸ’– 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 the CODEREF to the clicked signal 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 combine stock and label arbitrarily β€” mix and match bestie, go off ✨
  • with_repeat = BOOLEAN [optional] β€” if you set this option the clicked_hook is 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 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