| 1 | package TUI::Objects; | ||
| 2 | # ABSTRACT: Base objects for the TUI::Vision framework | ||
| 3 | |||
| 4 | 2 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | our $VERSION = '2.000002'; | |
| 9 | 2 | $VERSION =~ tr/_//d; | |
| 10 | 2 | our $AUTHORITY = 'cpan:BRICKPOOL'; | |
| 11 | |||
| 12 | 2 | ▶ | use Import::Into; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 2 | ▶ | use TUI::Objects::Const; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use TUI::Objects::Object; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use TUI::Objects::Point; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use TUI::Objects::Rect; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use TUI::Objects::NSCollection; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | use TUI::Objects::NSSortedCollection; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | ▶ | use TUI::Objects::Collection; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use TUI::Objects::SortedCollection; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 2 | ▶ | use TUI::Objects::StringCollection; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 3 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 25 | 3 | my $target = caller; | |
| 26 | 3 | TUI::Objects::Const->import::into( $target, qw( :all ) ); | |
| 27 | 3 | TUI::Objects::Object->import::into( $target ); | |
| 28 | 3 | TUI::Objects::Point->import::into( $target ); | |
| 29 | 3 | TUI::Objects::Rect->import::into( $target ); | |
| 30 | 3 | TUI::Objects::NSCollection->import::into( $target ); | |
| 31 | 3 | TUI::Objects::NSSortedCollection->import::into( $target ); | |
| 32 | 3 | TUI::Objects::Collection->import::into( $target ); | |
| 33 | 3 | TUI::Objects::SortedCollection->import::into( $target ); | |
| 34 | 3 | TUI::Objects::StringCollection->import::into( $target ); | |
| 35 | } | ||
| 36 | |||
| 37 | 0 | ▶ | sub unimport { |
|
Subroutine
unimport: not called CC=1 SCAR=6.9
| |||
| 38 | 0 | my $caller = caller; | |
| 39 | 0 | TUI::Objects::Const->unimport::out_of( $caller ); | |
| 40 | 0 | TUI::Objects::Object->unimport::out_of( $caller ); | |
| 41 | 0 | TUI::Objects::Point->unimport::out_of( $caller ); | |
| 42 | 0 | TUI::Objects::Rect->unimport::out_of( $caller ); | |
| 43 | 0 | TUI::Objects::NSCollection->unimport::out_of( $caller ); | |
| 44 | 0 | TUI::Objects::NSSortedCollection->unimport::out_of( $caller ); | |
| 45 | 0 | TUI::Objects::Collection->unimport::out_of( $caller ); | |
| 46 | 0 | TUI::Objects::SortedCollection->unimport::out_of( $caller ); | |
| 47 | 0 | TUI::Objects::StringCollection->unimport::out_of( $caller ); | |
| 48 | } | ||
| 49 | |||
| 50 | 2 | 1 | |
| 51 | |||
| 52 | __END__ | ||