The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FLTK::TextSelection -

Description

Functions

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( );

Usage

  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 )

Constructor

Methods

$selection->set( $start, $end )

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.

30 POD Errors

The following errors were encountered while parsing the POD:

Around line 22:

You forgot a '=back' before '=head2'

Around line 26:

=back without =over

Around line 35:

You forgot a '=back' before '=head2'

Around line 39:

=back without =over

Around line 50:

You forgot a '=back' before '=head2'

Around line 60:

=back without =over

Around line 69:

You forgot a '=back' before '=head2'

Around line 73:

'=item' outside of any '=over'

Around line 90:

You forgot a '=back' before '=head2'

Around line 94:

=back without =over

Around line 105:

You forgot a '=back' before '=head2'

Around line 109:

=back without =over

Around line 120:

You forgot a '=back' before '=head2'

Around line 124:

=back without =over

Around line 135:

You forgot a '=back' before '=head2'

Around line 139:

'=item' outside of any '=over'

Around line 143:

You forgot a '=back' before '=head2'

Around line 147:

=back without =over

Around line 157:

You forgot a '=back' before '=head2'

Around line 161:

=back without =over

Around line 171:

You forgot a '=back' before '=head2'

Around line 175:

=back without =over

Around line 186:

You forgot a '=back' before '=head2'

Around line 190:

=back without =over

Around line 200:

You forgot a '=back' before '=head2'

Around line 204:

=back without =over

Around line 216:

You forgot a '=back' before '=head2'

Around line 220:

'=item' outside of any '=over'

Around line 222:

You forgot a '=back' before '=head2'

Around line 226:

=back without =over