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

NAME

Mozilla::DOM::UIEvent

DESCRIPTION

Mozilla::DOM::UIEvent is a wrapper around an instance of Mozilla's nsIDOMUIEvent interface, from which Mozilla::DOM::KeyEvent and Mozilla::DOM::MouseEvent inherit. This class inherits from Event.

 * The nsIDOMUIEvent interface is the datatype for all UI events in the
 * Document Object Model.
 *
 * For more information on this interface please see
 * L<http:E<sol>E<sol>www.w3.orgE<sol>TRE<sol>DOM-Level-2-EventsE<sol>>

CLASS METHODS

$iid = Mozilla::DOM::UIEvent->GetIID()

Pass this to QueryInterface.

METHODS

$int = $event->GetDetail

    I don't know what a "detail" is. (Apparently it isn't used during dom_mouse_over or dom_mouse_out signals. When clicking the mouse, it seems to be the number of consecutive clicks, up to 3.)

$abstract_view = $event->GetView

    See the DOM Level 2 Views specification.

$event->InitUIEvent($eventType, $canbubble, $cancelable, $detail)

    • $eventtype (string)

    • $canbubble (boolean)

    • $cancelable (boolean)

    • $detail (integer (long))

    See Event::InitEvent for more information. This method is basically the same, but with two extra arguments. (XXX: add docs for args)

    Note: I don't see how you can Create or QueryInterface an AbstractView, and trying to pass in 0 or undef was just causing a segfault, so I've omitted what would normally be the 4th argument of this method. If someone can explain why you'd need it and how you'd use it, then I can put it back in.

SEE ALSO

Mozilla::DOM

COPYRIGHT

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.