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:

Note that the possible values for the variable are 0 or 1, which will be changed according Perl's standard true/false conversions.

Attributes

text [rw, recommended]

the text as string or variable reference

Note that the reference will 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.

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 abstract Check class itself:

new - constructor

see UI::Various::core::construct

SEE ALSO

UI::Various

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@cpan.org>