The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FLTK::CheckButton - Push button widget

Description

This button turns the value() on and off each release of a click inside of it, and displays a checkmark to the user.

You can control the color of the checkbox with color() and the color of the checkmark with textcolor(). You can make it draw different colors when turned on by setting selection_color() and selection_textcolor() on the widget (these are ignored if set in an inherited style()).

Functions

default_style

my $style = $checkbutton->default_style( );

Get the style

$checkbutton->default_style( $style );

Set the style.

new

my $self = $checkbutton->new( $x, $y, $w, $h, $label );

Creates a new FLTK::CheckButton object. Obviously.

Author

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.