shallow copying req->params
[catagits/Reaction.git] / lib / Reaction / UI / ViewPort / Image.pm
CommitLineData
6c3805b0 1package Reaction::UI::ViewPort::Image;
2
3use Reaction::Class;
4use namespace::clean -except => [ qw(meta) ];
5extends 'Reaction::UI::ViewPort';
6
7has uri => ( is => 'rw', isa => 'URI', required => 1);
8has width => ( is => 'rw', isa => 'Int');
9has height => ( is => 'rw', isa => 'Int');
10
11__PACKAGE__->meta->make_immutable;
12
131;
14
15__END__;
7ea09fbb 16
17
18=head1 NAME
19
20Reaction::UI::ViewPort::Image
21
22=head1 DESCRIPTION
23
7460b544 24A Viewport to display an image.
25
7ea09fbb 26=head1 ATTRIBUTES
27
28=head2 uri
29
30Required URI object pointing to the image to be displayed.
31
32=head2 width
33
34Optional width in pixels.
35
36=head2 height
37
38Optional height in pixels.
39
40=head1 AUTHORS
41
42See L<Reaction::Class> for authors.
43
44=head1 LICENSE
45
46See L<Reaction::Class> for the license.
47
48=cut