GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTTP::MobileAgent::Display(3) User Contributed Perl Documentation HTTP::MobileAgent::Display(3)

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

  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;

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

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.

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';

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.

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

Hey! The above document had some coding errors, which are explained below:
Around line 81:
You forgot a '=back' before '=head1'
Around line 89:
=back without =over
2011-02-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.