UI::Various::Check - general checkbox widget of UI::Various
use UI::Various; my $main = UI::Various::main(); my $variable = 0; $main->window(... UI::Various::Check->new(text => 'special mode', var => \$variable), ...); $main->mainloop();
This module defines the general checkbox widget of an application using UI::Various.
Besides the common attributes inherited from UI::Various::widget the Check widget knows only two additional attributes:
UI::Various::widget
Check
the text as string or variable reference
Note that the reference will be dereferenced during initialisation. Later changes will be ignored, as not all possible UIs would support that change.
a variable reference for the checkbox
The variable will switched on (1) and off (0) by the checkbox.
1
0
Note that the initial values for the variable will be changed to 0 or 1 according Perl's standard true/false conversions.
Besides the accessors (attributes) described above and by UI::Various::widget and the methods inherited from UI::Various::widget only the constructor is provided by the Check class itself:
see UI::Various::core::construct
UI::Various
Copyright (C) Thomas Dorner.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.
Thomas Dorner <dorner (at) cpan (dot) org>
To install UI::Various, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UI::Various
CPAN shell
perl -MCPAN -e shell install UI::Various
For more information on module installation, please visit the detailed CPAN module installation guide.