FLTK::TextSelection -
end
my $end = $textselection->end( );
Position of end of selection or, if rectangular, selections from keyboard.
my $rectstart = $selection->rectstart( )
includes
my $bool = $textselection->includes( $pos, $lineStartPos, $dispIndex );
my $pos = $selection->position( $start, $end )
new
my $selection = $textselection->new( );
my $selection = FLTK::TextSelection->new( );
position
my $pos = $textselection->position( $start, $end );
my $pos = $selection->position( $start, $end, $isrect, $rectstart, $rectend )
my $pos = $textselection->position( $start, $end, $isrect, $rectstart, $rectend );
rectangular
my $is_rect = $textselection->rectangular( );
Returns a true value if the selection is rectangular.
my $start = $selection->start( )
rectend
my $rectend = $textselection->rectend( );
Ident of right edge of rectangular selection.
my $bool = $selection->selected( )
rectstart
my $rectstart = $textselection->rectstart( );
Indent of left edge of rectangular selection.
my $rectend = $selection->rectend( )
selected
my $bool = $textselection->selected( );
Returns a true value if the selection is active.
$selection->selected( $bool )
$textselection->selected( $bool );
Sets the selection as active or inactive.
my $bool = $selection->zerowidth( )
set
$textselection->set( $start, $end );
$selection->set_rectangular( $start, $end, $rectstart, $rectend )
set_rectangular
$textselection->set_rectangular( $start, $end, $rectstart, $rectend );
$selection->update( position, ndeleted, ninserted )
start
my $start = $textselection->start( );
Position of start selection or, if rectangular, selections from keyboard.
my $end = $selection->end( )
update
$textselection->update( $pos, $ndeleted, $ninserted );
my $is_rect = $selection->rectangular( )
zerowidth
my $bool = $textselection->zerowidth( );
Zero width selctions aren't real selections, but they can be useful when creating rectangular selections from the keyboard.
$selection->zerowidth( $bool )
$textselection->zerowidth( $bool );
my $bool = $selection->includes( $pos, $lineStartPos, $dispIndex )
$selection->set( $start, $end )
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
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.
30 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
=back without =over
'=item' outside of any '=over'
To install FLTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FLTK
CPAN shell
perl -MCPAN -e shell install FLTK
For more information on module installation, please visit the detailed CPAN module installation guide.