Prima::ExtLists(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

πŸ’– 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 the INDEXth button STATE to 0 or 1. If the STATE is -1 the button state is toggled.

Returns the new state of the button.

  • vector VEC β€” VEC is 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 state 0.
  • set_all_buttons β€” Sets all buttons to state 1.

🌈 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