Sanko Robinson > FLTK > FLTK::TextSelection

Download:
FLTK-0.532009.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.532006   Source  

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.

syntax highlighting: