App-sdview-Output-Tickit
view release on metacpan or search on metacpan
lib/App/sdview/Output/Tickit.pm view on Meta::CPAN
field $searchre;
field $on_incremental :param;
field $on_enter :param;
method show ()
{
$text = "";
$float->show;
$self->window->cursor_at( 0, length($leader) );
$self->take_focus;
}
method dismiss ()
{
$float->hide;
}
method render_to_rb ( $rb, $rect )
{
$rb->eraserect( $rect );
$rb->goto( 0, 0 );
$rb->text( $leader );
$rb->text( $text, $ok ? undef : $self->get_style_pen( "bad" ) );
$self->window->cursor_at( 0, length($leader) + length($text) );
my $counttext = sprintf " (%d)", $matchcount;
if( $is_ignorecase ) {
$rb->goto( 0, $self->window->right - 2 - length $counttext );
$rb->text( "/i" );
}
if( $is_wholeword ) {
$rb->goto( 0, $self->window->right - 4 - length $counttext );
$rb->text( "W" );
}
( run in 0.222 second using v1.01-cache-2.11-cpan-4d50c553e7e )