NAME

TUI::Views::Const - constants for view and window components

SYNOPSIS

use TUI::Views::Const qw(:all);

# or import specific constant groups
use TUI::Views::Const qw(:cmXXXX :sfXXXX :ofXXXX);

DESCRIPTION

TUI::Views::Const defines constants used by Turbo Vision view, window, and scrollbar components.

The constants in this module follow the naming conventions of Turbo Vision 2.0 and are provided using lower camel case identifiers. They are grouped by purpose and exported via tag-based export groups.

These constants control view state, option flags, grow and drag modes, command handling, palette selection, and event filtering.

This module only defines constants. The semantic meaning and practical usage of these constants is documented in higher-level modules such as TUI::Views, TView, TWindow, and the individual view classes.

CONSTANTS

Phase and selection constants

Constants used during view event processing and selection handling.

Command constants (cmXXXX)

Command identifiers used by views, dialogs, windows, and application-level components.

These values are delivered via $event->{command} and are handled by view and window classes.

View state flags (sfXXXX)

State flags describing the current state of a view, such as visibility, focus, selection, and modality.

View option flags (ofXXXX)

Option flags controlling how views participate in event handling, layout, validation, and buffering.

Grow mode flags (gfXXXX)

Flags controlling how views resize when their owner changes size.

Drag mode flags (dmXXXX)

Flags controlling how views behave during mouse drag operations.

Help context constants (hcXXXX)

Help context identifiers used by views during interactive operations.

Scroll bar constants (sbXXXX)

Constants identifying scroll bar parts, directions, and behavior options.

Window flags (wfXXXX)

Flags controlling window capabilities such as moving, resizing, closing, and zooming.

Inhibit flags (noXXXX)

Flags used to disable specific view or window components.

Window numbering and palette constants

Constants used for window numbering, palette selection, and color layout of views and windows.

Event mask constants (evXXXX)

Event mask constants used to filter positional and focused events.

EXPORT TAGS

Constants are exported using the following tag-based export groups:

  • :phaseType, :selectMode

  • :cmXXXX, :hcXXXX

  • :sfXXXX, :ofXXXX

  • :gfXXXX, :dmXXXX

  • :sbXXXX, :wfXXXX, :noXXXX

  • :wpXXXX, :cpXXXX

  • :evXXXX

  • :all - import all constants

SEE ALSO

TUI::Views, TUI::Views::View, TUI::Views::Window, TUI::Views::ScrollBar

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