NAME

TUI::Help::TopicDefinition - linked help-topic definition

HIERARCHY

TObject
  TTopicDefinition

SYNOPSIS

use TUI::Help;

my $first = new_TTopicDefinition( 'Introduction', 100 );
my $second = new_TTopicDefinition( 'Details', 101 );
$first->next( $second );

DESCRIPTION

TTopicDefinition associates a topic name with its numeric help-context value. Definitions can be linked through next to form a list, as in the original Borland help compiler.

Construction stores the supplied name and value and initializes next to undef. Perl scalar storage replaces the original string allocation and copying.

No streaming interface or Storable integration is provided.

ATTRIBUTES

All three attributes are read/write. The type names below describe expected values using TUI::toolkit::Types; attribute setters do not enforce these types.

topic

Str. Topic name, supplied to the constructor.

value

PositiveOrZeroInt. Numeric topic value, supplied to the constructor.

next

Maybe[Object]. Reference to the next TTopicDefinition, or undef at the end of the chain. Initially undef.

CONSTRUCTOR

new

my $definition = TTopicDefinition->new(
  topic => 'Introduction',
  value => 100,
);

Requires topic as Str and value as PositiveOrZeroInt. Creates a definition with no successor.

new_TTopicDefinition

my $definition = new_TTopicDefinition( 'Introduction', 100 );

Positional factory taking the topic name and numeric value.

SEE ALSO

TUI::Help, TUI::Help::HelpBase, TObject, TUI::toolkit::Types

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).