NAME

SDL::LCD - A LCD object

SYNOPSIS

    # create an LCD
    lcd = new 'SDL::LCD'

    # set the LCD position
    lcd."xpos"( 10 )
    lcd."ypos"( 10 )

    # set the LCD content
    lcd = "-01:23.4"

    # draw the LCD
    lcd."draw"( screen )

DESCRIPTION

Displays a liquid crystal display (LCD) with a variable number of digits. Supported are 0-9, a-f, ".", ":", "-" and blanks.

Each digit is 10 pixels width, plus 2 pixels space between the digits. The height of each digit is 21 pixels.

METHODS

An SDL::LCD object has the following methods:

_digits( count )
Adjusts the minimum number of digits to display.
set_integer_native( val )
Sets the LCD content to display.
set_string_native( val )
Sets the LCD content to display.
draw( screen )
Draws the LCD onto the specified screen.
xpos( val )
Sets the x position of the LCD.
ypos( val )
Sets the y position of the LCD.

AUTHOR

Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.

COPYRIGHT

Copyright (C) 2004-2008, Parrot Foundation.