NAME
UI::Various::Check - general checkbox widget of UI::Various
SYNOPSIS
use UI::Various;
my $main = UI::Various::main();
my $variable = 0;
$main->window(...
UI::Various::Check->new(text => 'special mode',
var => \$variable),
...);
$main->mainloop();
ABSTRACT
This module defines the general checkbox widget of an application using UI::Various.
DESCRIPTION
Besides the common attributes inherited from UI::Various::widget
the Check
widget knows only two additional attributes:
Attributes
- text [rw, recommended]
-
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.
- var [rw, recommended]
-
a variable reference for the checkbox
The variable will switched on (
1
) and off (0
) by the checkbox.Note that the initial values for the variable will be changed to
0
or1
according Perl's standard true/false conversions.
METHODS
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:
new - constructor
see UI::Various::core::construct
SEE ALSO
LICENSE
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.
AUTHOR
Thomas Dorner <dorner (at) cpan (dot) org>