AcePerl
view release on metacpan or search on metacpan
Ace/Graphics/Glyph/crossbox.pm view on Meta::CPAN
package Ace::Graphics::Glyph::crossbox;
use strict;
use vars '@ISA';
@ISA = 'Ace::Graphics::Glyph';
sub draw {
my $self = shift;
$self->SUPER::draw(@_);
my $gd = shift;
# and draw a cross through the box
my ($x1,$y1,$x2,$y2) = $self->calculate_boundaries(@_);
my $fg = $self->fgcolor;
$gd->line($x1,$y1,$x2,$y2,$fg);
$gd->line($x1,$y2,$x2,$y1,$fg);
}
1;
( run in 0.578 second using v1.01-cache-2.11-cpan-39bf76dae61 )