Prima::ExtLists(3)
π Prima::ExtLists(3) β User Contributed Perl Documentation
okay bestie, welcome to Prima::ExtLists(3) β yes, the manual name is literally User Contributed Perl Documentation, and we're about to get into extended list-box functionality together. No cap, this is the whole page in bestie form, every detail intact. π«Ά
πΈ NAME
Prima::ExtLists β extended functionality for list boxes. That's the whole name, and honestly? Iconic. π
β¨ SYNOPSIS
use Prima qw(ExtLists Application);
my $vec = '';
vec( $vec, 0, 8) = 0x55;
Prima::CheckList-> new(
items => [1..10],
vector => $vec,
);
run Prima;
This is the vibe check: you bring in ExtLists and Application, make a vector scalar $vec, do vec( $vec, 0, 8) = 0x55;, spin up a Prima::CheckList with items => [1..10] and vector => $vec, then run Prima;. Slay. β¨
π¦ DESCRIPTION
This module is intended to be a collection of list boxes with particular enhancements. Currently, the only package defined here is the Prima::CheckList class. Periodt.
π Prima::CheckList
Provides a list box class where each item is equipped with a check box. The check box state can interactively be toggled by the enter key; also the list box reacts differently to click and double click. That's the whole main-character energy of this class. π
π Properties
button INDEX, STATEβ Runtime only. Sets theINDEXth buttonSTATEto0or1. If theSTATEis-1the button state is toggled.
Returns the new state of the button.
vector VECβVECis a vector scalar where each bit corresponds to the checked state of each list box item.
See also: "vec" in perlfunc.
π§ Methods
clear_all_buttonsβ Sets all buttons to state0.set_all_buttonsβ Sets all buttons to state1.
π AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. π«Ά
β SEE ALSO
Prima, Prima::Lists, examples/extlist.pl
okay bestie, that's the whole page. π This one comes from perl v5.42.0, dated 2024-08-20 β no cap, that's the source/version and date sign-off, and we are done. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms