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