NAME

TWindowsInit - A class for initializing a frame for TWindows.

SYNOPSIS

use TUI::Views;

my $winInit = TWindowsInit->new($cFrame => sub { ... } );

DESCRIPTION

The TWindowsInit class is used to initialize the frame in TWindows. It provides methods to start and complete the initialization process. This class is essential for setting up the user interface elements in a TWindow class.

ATTRIBUTES

createFrame

A subroutine reference used to create the frame for a window. (CodeRef)

METHODS

new

my $obj = TWindowInit->new(%args);

Initializes the code reference for a frame.

cFrame

Required parameter to specify the frame creation subroutine. (CodeRef)

from

my $obj = TWindowInit->from($cFrame);

Creates a TWindowInit object from the specified frame creation subroutine.

createFrame

my $frame = $self->createFrame($r);

Creates the frame for a TWindow using the specified TRect parameter $r.

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) 2021-2026 the "AUTHORS" as listed above.

This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution). This documentation is provided under the same terms as the Turbo Vision library itself.