| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package UI::Various::toplevel; | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | # Author, Copyright and License: see end of file | 
| 4 |  |  |  |  |  |  |  | 
| 5 |  |  |  |  |  |  | =head1 NAME | 
| 6 |  |  |  |  |  |  |  | 
| 7 |  |  |  |  |  |  | UI::Various::toplevel - abstract top-level widget of L | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | # This module should never be used directly! | 
| 12 |  |  |  |  |  |  | # It is used indirectly via the following ones: | 
| 13 |  |  |  |  |  |  | use UI::Various::Window; | 
| 14 |  |  |  |  |  |  | use UI::Various::Dialog; | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | =head1 ABSTRACT | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | This module is the common abstract container class for the top-level UI | 
| 19 |  |  |  |  |  |  | elements C> and C>. | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | Besides the common attributes inherited from C and | 
| 24 |  |  |  |  |  |  | C the C widget knows the following | 
| 25 |  |  |  |  |  |  | additional attributes: | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | =head2 Attributes | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | =over | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =cut | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | ######################################################################### | 
| 34 |  |  |  |  |  |  |  | 
| 35 | 14 |  |  | 14 |  | 1401 | use v5.14; | 
|  | 14 |  |  |  |  | 35 |  | 
| 36 | 14 |  |  | 14 |  | 67 | use strictures; | 
|  | 14 |  |  |  |  | 19 |  | 
|  | 14 |  |  |  |  | 72 |  | 
| 37 | 14 |  |  | 14 |  | 1998 | no indirect 'fatal'; | 
|  | 14 |  |  |  |  | 27 |  | 
|  | 14 |  |  |  |  | 58 |  | 
| 38 | 14 |  |  | 14 |  | 761 | no multidimensional; | 
|  | 14 |  |  |  |  | 38 |  | 
|  | 14 |  |  |  |  | 64 |  | 
| 39 | 14 |  |  | 14 |  | 544 | use warnings 'once'; | 
|  | 14 |  |  |  |  | 32 |  | 
|  | 14 |  |  |  |  | 751 |  | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | our $VERSION = '0.22'; | 
| 42 |  |  |  |  |  |  |  | 
| 43 | 14 |  |  | 14 |  | 97 | use UI::Various::core; | 
|  | 14 |  |  |  |  | 53 |  | 
|  | 14 |  |  |  |  | 76 |  | 
| 44 | 14 |  |  | 14 |  | 2768 | use UI::Various::container; | 
|  | 14 |  |  |  |  | 28 |  | 
|  | 14 |  |  |  |  | 3129 |  | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | require Exporter; | 
| 47 |  |  |  |  |  |  | our @ISA = qw(UI::Various::container); | 
| 48 |  |  |  |  |  |  | our @EXPORT_OK = qw(); | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | ######################################################################### | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | =item height [rw] | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | preferred (maximum) height of an application window / dialogue in | 
| 55 |  |  |  |  |  |  | (approximately) characters, should not exceed L | 
| 56 |  |  |  |  |  |  | Manager" |UI::Various::Main/max_height ro> | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =cut | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | sub height($;$) | 
| 61 |  |  |  |  |  |  | { | 
| 62 | 0 |  |  | 0 | 1 | 0 | return access('height', undef, @_); | 
| 63 |  |  |  |  |  |  | } | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =item max_height [ro, inherited] | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | access to L | 
| 70 |  |  |  |  |  |  | ro> | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | =cut | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | sub max_height($;$) | 
| 75 |  |  |  |  |  |  | { | 
| 76 | 4 |  |  | 4 | 1 | 21 | return UI::Various::widget::_inherited_access('max_height', undef, @_); | 
| 77 |  |  |  |  |  |  | } | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =item max_width [ro, inherited] | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | access to L | 
| 84 |  |  |  |  |  |  | ro> | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | =cut | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  | sub max_width($;$) | 
| 89 |  |  |  |  |  |  | { | 
| 90 | 4 |  |  | 4 | 1 | 18 | return UI::Various::widget::_inherited_access('max_width', undef, @_); | 
| 91 |  |  |  |  |  |  | } | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | =item width [rw] | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | preferred (maximum) width of an application window / dialogue in | 
| 98 |  |  |  |  |  |  | (approximately) characters, may not exceed L | 
| 99 |  |  |  |  |  |  | Manager" |UI::Various::Main/max_width ro> | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =cut | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | sub width($;$) | 
| 104 |  |  |  |  |  |  | { | 
| 105 | 114 |  |  | 114 | 1 | 215 | return access('width', undef, @_); | 
| 106 |  |  |  |  |  |  | } | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | ######################################################################### | 
| 109 |  |  |  |  |  |  |  | 
| 110 |  |  |  |  |  |  | 1; | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | ######################################################################### | 
| 113 |  |  |  |  |  |  | ######################################################################### | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | =back | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | L | 
| 120 |  |  |  |  |  |  |  | 
| 121 |  |  |  |  |  |  | =head1 LICENSE | 
| 122 |  |  |  |  |  |  |  | 
| 123 |  |  |  |  |  |  | Copyright (C) Thomas Dorner. | 
| 124 |  |  |  |  |  |  |  | 
| 125 |  |  |  |  |  |  | This library is free software; you can redistribute it and/or modify it | 
| 126 |  |  |  |  |  |  | under the same terms as Perl itself.  See LICENSE file for more details. | 
| 127 |  |  |  |  |  |  |  | 
| 128 |  |  |  |  |  |  | =head1 AUTHOR | 
| 129 |  |  |  |  |  |  |  | 
| 130 |  |  |  |  |  |  | Thomas Dorner Edorner (at) cpan (dot) orgE | 
| 131 |  |  |  |  |  |  |  | 
| 132 |  |  |  |  |  |  | =cut |