1Curses::UI::Window(3) User Contributed Perl DocumentationCurses::UI::Window(3)
2
3
4

NAME

6       Curses::UI::Window - Create and manipulate Window widgets
7

CLASS HIERARCHY

9        Curses::UI::Widget
10           |
11           +----Curses::UI::Container
12                   |
13                   +----Curses::UI::Window
14

SYNOPSIS

16           use Curses::UI;
17           my $cui = new Curses::UI;
18           my $win = $cui->add(
19               'window_id', 'Window',
20               %options,
21           );
22

DESCRIPTION

24       Curses::UI::Window is a window widget. It can be added to a Curses::UI
25       instance. After that the window can be filled with other widgets to
26       create an application window. For information on how to fill the window
27       with widgets, see Curses::UI::Container.
28

STANDARD OPTIONS

30       -parent, -x, -y, -width, -height, -pad, -padleft, -padright, -padtop,
31       -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom,
32       -title, -titlefullwidth, -titlereverse, -onfocus, -onblur
33
34       For an explanation of these standard options, see Curses::UI::Widget.
35

WIDGET-SPECIFIC OPTIONS

37-centered < BOOLEAN >
38
39           A window can automatically be drawn in the center of the screen.
40           To enable this option use a true value and to disable it use a
41           false value. The default is not to center a window. Example:
42
43               $cui->add('mywindow', 'Window', -centered => 1);
44

METHODS

46new ( OPTIONS )
47
48layout ( )
49
50draw ( BOOLEAN )
51
52focus ( )
53
54onFocus ( CODEREF )
55
56onBlur ( CODEREF )
57
58intellidraw ( )
59
60           These are standard methods. See Curses::UI::Widget for an
61           explanation of these.
62
63modalfocus ( )
64
65           If this method is called, the window will get modal focus. This
66           means that all events will be sent to this window. By calling the
67           loose_focus method, the window will loose its focus.
68
69loose_focus ( )
70
71           This method will have the window loose its focus (using this method
72           you can also let a modal focused window loose its focus).
73

SEE ALSO

75       Curses::UI, Curses::UI::Container, Curses::UI::Widget
76

AUTHOR

78       Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
79
80       Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
81
82       This package is free software and is provided "as is" without express
83       or implied warranty. It may be used, redistributed and/or modified
84       under the same terms as perl itself.
85
86
87
88perl v5.32.1                      2021-01-27             Curses::UI::Window(3)
Impressum