1 package Reaction::UI::ViewPort::Image;
4 use namespace::clean -except => [ qw(meta) ];
5 extends 'Reaction::UI::ViewPort';
7 has uri => ( is => 'rw', isa => 'URI', required => 1);
8 has width => ( is => 'rw', isa => 'Int');
9 has height => ( is => 'rw', isa => 'Int');
11 __PACKAGE__->meta->make_immutable;
20 Reaction::UI::ViewPort::Image
24 A Viewport to display an image.
30 Required URI object pointing to the image to be displayed.
34 Optional width in pixels.
38 Optional height in pixels.
42 See L<Reaction::Class> for authors.
46 See L<Reaction::Class> for the license.