aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Image.pm
blob: cd763ef46d61ccf5c5e2785580872eee1e4e181d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package Reaction::UI::ViewPort::Image;

use Reaction::Class;
use namespace::clean -except => [ qw(meta) ];
extends 'Reaction::UI::ViewPort';

use MooseX::Types::URI qw/Uri/;
use MooseX::Types::Moose qw/Int/;

has uri => ( is => 'rw', isa => Uri, required => 1);
has width => ( is => 'rw', isa => Int);
has height => ( is => 'rw', isa => Int);

__PACKAGE__->meta->make_immutable;

1;

__END__;


=head1 NAME

Reaction::UI::ViewPort::Image

=head1 DESCRIPTION

A Viewport to display an image.

=head1 ATTRIBUTES

=head2 uri

Required URI object pointing to the image to be displayed.

=head2 width

Optional width in pixels.

=head2 height

Optional height in pixels.

=head1 AUTHORS

See L<Reaction::Class> for authors.

=head1 LICENSE

See L<Reaction::Class> for the license.

=cut