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

NAME

TiVo::HME::View - Perl encapsulation of TiVo HME Views.

SYNOPSIS

  use TiVo::HME::Application;
  @ISA = qw(TiVo::HME::Application);

  my $new_view = $T_VIEW->new(
        x => $x,            # Minimum x values
        y => $y,            # Minimum y values
        width => $width,    # view width
        height => $height,  # view height
        visiable => 1,      # make visible
        );

    $new_view->add;         # actually add view to the TiVo

    # manipulate view
    $new_view->visible( [ 0 | 1 ]);                 # visible or not
    $new_view->bounds( $x, $y, $width, $height);    # changes view bounds
    $new_view->scale( $xscale, $yscale);            # x,y >= 0 (floats)
    $new_view->translate( $tx, $ty);                # translate view coords
    $new_view->transparency($tp);                   # $tp = 0 .. 1 (0 is opaque)
    $new_view->painting( [ 0 | 1 ]);                # set painting
    $new_view->remove;                              # take away view

    # All of the above functions (except 'painting') take an optional
    #   'animation' parameter to animate the manipulation.
    #   See TiVo::HME::Resource to create an animation

    # Assocaiate a Resource with this View
    $new_view->set_resource($resource, < flags >);

    # See TiVo::HME::Resource to create a Resource
    # flags is a |'ed value of:
    #
    # $T_CONST->HALIGN_LEFT     
    # $T_CONST->HALIGN_CENTER   
    # $T_CONST->HALIGN_RIGHT    
    # $T_CONST->VALIGN_TOP      
    # $T_CONST->VALIGN_CENTER   
    # $T_CONST->VALIGN_BOTTOM   
    # $T_CONST->TEXT_WRAP       
    # $T_CONST->IMAGE_HFIT      
    # $T_CONST->IMAGE_VFIT      
    # $T_CONST->IMAGE_BESTFIT   

DESCRIPTION

Encapsulate a TiVo HME View

SEE ALSO

TiVo::HME::Application http://tivohme.sourceforge.net

AUTHOR

Mark Ethan Trostler, <mark@zzo.com>

COPYRIGHT AND LICENSE

Copyright 2005 by Mark Ethan Trostler

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.