| 1 | use Renard::Incunabula::Common::Setup; | ||
| 2 | package Renard::Curie::Model::ViewOptions; | ||
| 3 | # ABSTRACT: A high-level set of options for generating a view | ||
| 4 | $Renard::Curie::Model::ViewOptions::VERSION = '0.005'; | ||
| 5 | use Moo; | ||
| 6 | use Renard::Incunabula::Common::Types qw(InstanceOf); | ||
| 7 | use Renard::Curie::Model::ViewOptions::Grid; | ||
| 8 | use Renard::Curie::Model::ViewOptions::Zoom::Percentage; | ||
| 9 | |||
| 10 | with qw(MooX::Role::CloneSet); | ||
| 11 | |||
| 12 | has grid_options => ( | ||
| 13 | is => 'ro', | ||
| 14 | default => sub { | ||
| 15 | Renard::Curie::Model::ViewOptions::Grid->new( | ||
| 16 | rows => 1, columns => 1, | ||
| 17 | ); | ||
| 18 | }, | ||
| 19 | isa => InstanceOf['Renard::Curie::Model::ViewOptions::Grid'], | ||
| 20 | ); | ||
| 21 | |||
| 22 | has zoom_options => ( | ||
| 23 | is => 'ro', | ||
| 24 | default => sub { | ||
| 25 | Renard::Curie::Model::ViewOptions::Zoom::Percentage->new( | ||
| 26 | zoom_level => 1.0, | ||
| 27 | ); | ||
| 28 | }, | ||
| 29 | isa => InstanceOf['Renard::Curie::Model::ViewOptions::Zoom'], | ||
| 30 | ); | ||
| 31 | |||
| 32 | 1; | ||
| 33 | |||
| 34 | __END__ |