NAME
TUI::Gadgets::LineCollection - collection specialized for storing text lines
HIERARCHY
TObject
TNSCollection
TCollection
TLineCollection
SYNOPSIS
use TUI::Gadgets::LineCollection;
my $lines = TLineCollection->new( limit => 5, delta => 5 );
$lines->insert('First line');
$lines->insert('Second line');
DESCRIPTION
TLineCollection is a specialized TCollection used for storing text lines.
It is primarily used by file viewing components and other gadgets that need to maintain a collection of strings representing individual lines of text.
Apart from its constructor interface, all collection management behavior is inherited unchanged from TCollection.
CONSTRUCTOR
new
my $lines = TLineCollection->new(
limit => $limit,
delta => $delta,
);
Creates a new line collection.
- limit
-
Initial capacity of the collection (Int).
- delta
-
Growth increment of the collection (Int).
new_TLineCollection
my $lines = new_TLineCollection(
$limit,
$delta
);
Factory-style constructor using positional arguments.
This constructor is equivalent to calling new with named parameters and is provided for compatibility with traditional Turbo Vision construction patterns.
SEE ALSO
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).