The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chart::Clicker::Drawing::Component

DESCRIPTION

A Component is an entity with a graphical representation.

SYNOPSIS

  my $c = new Chart::Clicker::Drawing::Component({
    location => new Chart::Clicker::Drawing::Point({
        x => $x, y => $y
    }),
    width => 500, height => 350
  });

METHODS

Constructor

new
  my $c = new Chart::Clicker::Drawing::Component({
    location => new Chart::Clicker::Drawing::Point({
        x => $x, y => $y
    }),
    width => 500, height => 350
  });

Creates a new Component.

Class Methods

dimensions

Get this Component's dimensions.

draw

Draw this component.

inside_width

Get the width available in this container after taking away space for insets and borders.

inside_dimension

Get the dimension of this container's inside.

inside_height

Get the height available in this container after taking away space for insets and borders.

height

Set/Get this Component's height

location

Set/Get this Component's location

width

Set/Get this Component's height

upper_left_inside_point

Get the Point for this container's upper left inside.

upper_right_inside_point

Get the Point for this container's upper right inside.

AUTHOR

Cory 'G' Watson <gphat@cpan.org>

SEE ALSO

perl(1)

LICENSE

You can redistribute and/or modify this code under the same terms as Perl itself.