-
-
20 Apr 2022 09:41:08 UTC
- Distribution: Prima
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (139 / 50 / 2)
- Kwalitee
Bus factor: 1- % Coverage
- License: freebsd
- Perl: v5.12.0
- Activity
24 month- Tools
- Download (1.91MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Prima::ExtLists - extended functionality for list boxes
SYNOPSIS
use Prima qw(ExtLists Application); my $vec = ''; vec( $vec, 0, 8) = 0x55; Prima::CheckList-> new( items => [1..10], vector => $vec, ); run Prima;
DESCRIPTION
The module is intended to be a collection of list boxes with particular enhancements. Currently the only package is contained is
Prima::CheckList
class.Prima::CheckList
Provides a list box, 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 by click and double click.
Properties
- button INDEX, STATE
-
Runtime only. Sets INDEXth button STATE to 0 or 1. If 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 check 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
Module Install Instructions
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm Prima
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.