| 1 | package Gapp::TableCell; | ||
| 2 | { | ||
| 3 | $Gapp::TableCell::VERSION = '0.60'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use Moose; | ||
| 7 | use MooseX::SemiAffordanceAccessor; | ||
| 8 | use MooseX::StrictConstructor; | ||
| 9 | |||
| 10 | has [qw( left right top bottom )] => ( | ||
| 11 | is => 'rw', | ||
| 12 | isa => 'Int', | ||
| 13 | ); | ||
| 14 | |||
| 15 | has [qw( hexpand vexpand )] => ( | ||
| 16 | is => 'rw', | ||
| 17 | isa => 'ArrayRef', | ||
| 18 | ); | ||
| 19 | |||
| 20 | has [qw( xalign yalign )] => ( | ||
| 21 | is => 'rw', | ||
| 22 | isa => 'Num', | ||
| 23 | ); | ||
| 24 | |||
| 25 | sub table_attach { | ||
| 26 | my ( $self ) = @_; | ||
| 27 | return $self->left, $self->right, $self->top, $self->bottom, $self->hexpand, $self->vexpand; | ||
| 28 | } | ||
| 29 | |||
| 30 | 1; | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | __END__ |