r23442@martha (orig r924): groditi | 2008-10-23 22:26:09 -0400
[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
24=head1 ATTRIBUTES
25
26=head2 uri
27
28Required URI object pointing to the image to be displayed.
29
30=head2 width
31
32Optional width in pixels.
33
34=head2 height
35
36Optional height in pixels.
37
38=head1 AUTHORS
39
40See L<Reaction::Class> for authors.
41
42=head1 LICENSE
43
44See L<Reaction::Class> for the license.
45
46=cut