Struct domafic::listener::Event [] [src]

pub struct Event<'a> {
    pub type_str: Option<&'a str>,
    pub target_value: Option<&'a str>,
    pub client_x: i32,
    pub client_y: i32,
    pub offset_x: i32,
    pub offset_y: i32,
    pub which_keycode: i32,
    pub shift_key: bool,
    pub alt_key: bool,
    pub ctrl_key: bool,
    pub meta_key: bool,
}

Description of a DOM event that caused a listener to be called.

Fields

Type of event

Value of the node from which the event originated

Horizontal component at which the event occurred relative to the client area

Vertical component at which the event occurred relative to the client area

Horizontal component at which the event occurred relative to the target node

Vertical component at which the event occurred relative to the target node

Keycode of the keyboard key or mouse button that caused the event

Whether or not the "shift" key was pressed at the time of the event

Whether or not the "alt" key was pressed at the time of the event

Whether or not the "ctrl" key was pressed at the time of the event

Whether or not the "meta" key was pressed at the time of the event

Trait Implementations

impl<'a> Debug for Event<'a>
[src]

Formats the value using the given formatter.

impl<'a> Copy for Event<'a>
[src]

impl<'a> Clone for Event<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Hash for Event<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Eq for Event<'a>
[src]

impl<'a> PartialEq for Event<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.