Yoshiki KURIHARA > HTTP-MobileAgent-0.36 > HTTP::MobileAgent::Display

Download:
HTTP-MobileAgent-0.36.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.17   Source  

NAME ^

HTTP::MobileAgent::Display - Display information for HTTP::MobileAgent

SYNOPSIS ^

  use HTTP::MobileAgent;

  my $agent   = HTTP::MobileAgent->new;
  my $display = $agent->display;

  my $width  = $display->width;
  my $height = $display->height:
  my($width, $height) = $display->size;

  if ($display->color) {
      my $depth = $display->depth;
  }

  # only available in DoCoMo 505i
  my $width_bytes  = $display->width_bytes;
  my $height_bytes = $display->height_bytes;

DESCRIPTION ^

HTTP::MobileAgent::Display is a class for display information on HTTP::MobileAgent. Handy for image resizing or dispatching.

METHODS ^

width, height
  $width  = $display->width;
  $height = $display->height:

returns width and height of the display.

size
  ($width, $height) = $display->size;
  $size = $display->size;

returns width with height in array context, width * height in scalar context.

color
  if ($display->color) { }

returns true if it has color capability.

depth
  $depth = $display->depth;

returns color depth of the display.

USING EXTERNAL MAP FILE ^

If the environment variable DOCOMO_MAP exists, the specified XML data will be used for $DisplayMap.

ex) Please add the following code.

  $ENV{DOCOMO_MAP} = '/path/to/DoCoMoMap.xml';

AUTHOR ^

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

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

SEE ALSO ^

HTTP::MobileAgent, "DoCoMoMap.xml" in t

syntax highlighting: