| 1 | use Renard::Incunabula::Common::Setup; | ||
| 2 | package Intertangle::Jacquard::Role::Render::QnD::Bounds::Direct; | ||
| 3 | # ABSTRACT: Quick-and-dirty role for computing bounds directly using position and size | ||
| 4 | $Intertangle::Jacquard::Role::Render::QnD::Bounds::Direct::VERSION = '0.002'; | ||
| 5 | use Mu::Role; | ||
| 6 | |||
| 7 | requires 'origin_point'; | ||
| 8 | requires 'size'; | ||
| 9 | |||
| 10 | lazy bounds => method() { | ||
| 11 | Intertangle::Yarn::Graphene::Rect->new( | ||
| 12 | origin => $self->origin_point, | ||
| 13 | size => $self->size, | ||
| 14 | ); | ||
| 15 | }; | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ |