IO::Lcdproc::Client - Perl extension to connect to an LCDproc ready display.


NAME

IO::Lcdproc::Client - Perl extension to connect to an LCDproc ready display.


SYNOPSIS

  use IO::Lcdproc::Client;
  use IO::Lcdproc::Screen;
  use IO::Lcdproc::Widget;
  my $client    = IO::Lcdproc::Client->new(name => "MYNAME");
  my $screen    = IO::Lcdproc::Screen->new(name => "screen", client => $client);
  my $title     = IO::Lcdproc::Widget->new(
    name => "date", type => "title", screen => $screen
  );
  my $first     = IO::Lcdproc::Widget->new(
    name => "first", align => "center", screen => $screen, xPos => 1, yPos => 2
  );
  my $second    = IO::Lcdproc::Widget->new(
    name => "second", align => "center", screen => $screen, xPos => 1, yPos => 3
  );
  my $third     = IO::Lcdproc::Widget->new(
    name => "third", screen => $screen, xPos => 1, yPos => 4
  );
  $client->add( $screen );
  $screen->add( $title, $first, $second, $third );
  $client->connect() or die "cannot connect: $!";
  $client->initialize();
  $title->set("This is the title");
  $first->set("First Line");
  $second->set("Second line");
  $third->set("Third Line");


DESCRIPTION

Follow the example above. Pretty straight forward. You create a client, assign a screen, add widgets, and then set the widgets.

EXPORT

None by default.


SEE ALSO

  IO::Lcdproc::Client, IO::Lcdproc::Screen.


AUTHOR

Juan C. Müller, <sputnik@nonet>


COPYRIGHT AND LICENSE

Copyright 2005 by Juan C. Müller

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

 IO::Lcdproc::Client - Perl extension to connect to an LCDproc ready display.