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

NAME

SDLx::Widget::Textbox - create text boxes for your SDL apps easily

SYNOPSIS

Create a simple SDL text for your SDLx::App:

        $textbox = SDLx::Widget::Textbox->new(app => $app, x => 200, y => 200, w => 200, h => 20, name => 'username');
        $passbox = SDLx::Widget::Textbox->new(app => $app, x => 200, y => 230, w => 200, h => 20, name => 'password', password => 1);
        $textbox->show;
        $passbox->show;

$app is SDLx::App or SDLx::Controller.

Get the value out by:

                my $text_value = $textbox->value;
        

Also know if it is focused right now.

                warn 'Stop typing here!' if $textbox->focus;

SEE ALSO

SDL, SDLx::App, SDLx::Controller