FLTK::HelpView - Basic HTML viewer
Most HTML 2.0 elements are supported, as well as a primitive implementation of tables. GIF, JPEG, and PNG images are displayed inline.
my $ok = $helpview->find( $string, $start );
Find the specified string in the current help text. This is a plain text search.
0 on success.
-1 on failure.
$helpview->leftline( $col );
Set the left position.
my $col = $helpview->leftline( );
Get the left position.
my $result = $helpview->load( $filename );
Load the specified file.
0 on success and
-1 on error
my $hv = $helpview->new( $x, $y, $w, $h, $label );
Creates a new HelpView.
$helpview->topline( $string );
Sets the top line to the named line.
$helpview->topline( $index );
Sets the top line to the indexth line.
my $num = $helpview->topline( );
Retusn the index of the current top line.
$helpview->value( $string );
Set the help text directly.
my $string = $helpview->value( );
Get the current help text.
HelpView may not be subclassed like every other widget in FLTK because fltk::HelpView::draw( ) and fltk::HelpView::handle( ...
) are private.
If I subclass them,
I lose basic functionality because I cannot access those functions from a child class.
This is a "bug" and I'll report it when I have the time.
Sanko Robinson <firstname.lastname@example.org> - http://sankorobinson.com/
Copyright (C) 2008-2010 by Sanko Robinson <email@example.com>
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.