The manakai project

Web::DOM::TouchList

The DOM TouchList object

DESCRIPTION

The Web::DOM::TouchList class implements the DOM TouchList interface.

METHODS

Following methods are available:

$touch = $list->[$index]
$touch = $list->item ($index)

Return the Web::DOM::Touch object in the list, specified by its index. [TOUCH] [DOMPERL]

Use of the item method is discouraged as it doesn't support Perl-ish ways to access items, such as negative indexing, while $list->[-1] works as intended.

$number = @$list
$number = $list->length

Return the number of the touches in the list. [TOUCH] [DOMPERL]

$arrayref = $list->to_a

Return the new static array reference containing the touches in the list. [DOMPERL]

($touch1, $touch2, ...) = $list->to_list
($touch1, $touch2, ...) = @$list

Return the list of the Web::DOM::Touches contained in the list. [DOMPERL]

The object supports Perl standard read-only operations for array references, e.g. exists $rule_list->[4]. [DOMPERL]

SPECIFICATIONS

TOUCH

Touch Events <https://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html>.

DOMPERL

manakai's DOM Perl Binding <http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding#anchor-86>.

SEE ALSO

Web::DOM::Touch, Web::DOM::TouchEvent.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013 Wakaba <wakaba@suikawiki.org>.

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