Gtk2::E...TextView(3)

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

✨ Gtk2::Ex::FormFactory::TextView β€” bestie edition ✨

okay so you found Gtk2::E...TextView(3) in the perl manpages (User Contributed Perl Documentation, iconic of it) and you're like "what is this" β€” don't worry, I got you πŸ’–

πŸ’« NAME πŸ’«

Gtk2::Ex::FormFactory::TextView β€” it's a TextView chillin' inside a FormFactory framework. that's the whole vibe. πŸŽ€


🫢 SYNOPSIS 🫢

Gtk2::Ex::FormFactory::TextView->new (
  parse_tags      => Boolean to indicate tag markup in value,
  ...
  Gtk2::Ex::FormFactory::Widget attributes
);

yeah bestie, ... is literally in there, it's giving "you know the rest" 😌


🌸 DESCRIPTION 🌸

So this class implements a TextView in a Gtk2::Ex::FormFactory framework. and the content of that TextView? it's the value of the associated application object attribute. the widget is literally just vibing as a mirror of your object attribute, no cap. πŸͺžβœ¨

By default the TextView gets automatic horizontal and vertical scrollbars and word wrapping enabled β€” UNLESS you specify your own values for these settings. so like, the defaults are cute but you can absolutely override them, you're the main character here πŸ‘‘


πŸ‘‘ OBJECT HIERARCHY πŸ‘‘

Gtk2::Ex::FormFactory::Intro

Gtk2::Ex::FormFactory::Widget
+--- Gtk2::Ex::FormFactory::TextView

Gtk2::Ex::FormFactory::Layout
Gtk2::Ex::FormFactory::Rules
Gtk2::Ex::FormFactory::Context
Gtk2::Ex::FormFactory::Proxy

look at that lineage πŸ’… TextView is a direct glow-up of Gtk2::Ex::FormFactory::Widget, and all those other classes are just... there, doing their thing.


⭐ ATTRIBUTES ⭐

okay so the important lore: attributes are handled through the common get_ATTR(), set_ATTR() style accessors. BUT β€” and this is the part you cannot skip β€” they are mostly passed once to the object constructor and must not be altered after the associated FormFactory was built. it's giving "set it and forget it," fr fr. don't be out here mutating stuff post-build, that's not the move 🚫

  • parse_tags = Boolean [optional] β€” set this to a true value to say "hey, the value of this widget contains tag markup." the syntax of tag markup is literally this:
<tag name="TAGNAME">Some text</tag>
<tag name='TAGNAME'>Some text</tag>

Text with this markup will get the correspondent GtkTextView tag applied. 🏷️ and if you wanna go deeper, please refer to the Gtk2 documentation of GtkTextTagTable to learn more about tags. oh and pro tip from the page itself: use a customize_hook of your Gtk2::Ex::FormFactory::TextView objekt to attach a custom tag table to this widget. (yes, "objekt" β€” the original said it, I'm keeping it, it's lowkey a whole aesthetic πŸ₯°)


πŸ’– AUTHORS πŸ’–

JΓΆrn Reder <joern at zyn dot de> β€” the icon, the legend, the one who wrote 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. ⚠️ (yes bestie, that's the legal version of "no promises, don't come for me")

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 πŸ’€

omg the tea β˜• the document itself had some coding errors, and here's the rundown:

Around line 192:

Non-ASCII character seen before =encoding in 'JΓΆrn'. Assuming UTF-8

not the JΓΆrn causing a whole POD error, the ΓΆ is just out here being non-ASCII with no =encoding declaration πŸ™ˆ iconic behavior honestly.


and that's the whole page bestie!! πŸ’…βœ¨ this was perl v5.42.0 on 2025-07-25, brought to you by User Contributed Perl Documentation β€” go forth and build your TextViews, you got this πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from