Reaction::UI::ViewPort::Image - Reaction::UI::ViewPort::Image documentation


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::ViewPort::Image

DESCRIPTION

Top

A Viewport to display an image.

ATTRIBUTES

Top

uri

Required URI object pointing to the image to be displayed.

width

Optional width in pixels.

height

Optional height in pixels.

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation Contained in the Reaction distribution.

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__;