
FLTK::TextSelection -


end my $end = $textselection->end( );Position of end of selection or, if rectangular, selections from keyboard.
my $rectstart = $selection->rectstart( )includes my $pos = $selection->position( $start,
$end )new my $selection = FLTK::TextSelection->new( );
position my $pos = $selection->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 $selection->set_rectangular( $start, $end, $rectstart, $rectend )set_rectangular $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 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 )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.