1 package Reaction::UI::ViewPort::Image;
4 use namespace::clean -except => [ qw(meta) ];
5 extends 'Reaction::UI::ViewPort';
7 use MooseX::Types::URI qw/Uri/;
8 use MooseX::Types::Moose qw/Int/;
10 has uri => ( is => 'rw', isa => Uri, required => 1);
11 has width => ( is => 'rw', isa => Int);
12 has height => ( is => 'rw', isa => Int);
14 __PACKAGE__->meta->make_immutable;
23 Reaction::UI::ViewPort::Image
27 A Viewport to display an image.
33 Required URI object pointing to the image to be displayed.
37 Optional width in pixels.
41 Optional height in pixels.
45 See L<Reaction::Class> for authors.
49 See L<Reaction::Class> for the license.