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_str: Option<&'a str>
Type of event
target_value: Option<&'a str>
Value of the node from which the event originated
client_x: i32
Horizontal component at which the event occurred relative to the client area
client_y: i32
Vertical component at which the event occurred relative to the client area
offset_x: i32
Horizontal component at which the event occurred relative to the target node
offset_y: i32
Vertical component at which the event occurred relative to the target node
which_keycode: i32
Keycode of the keyboard key or mouse button that caused the event
shift_key: bool
Whether or not the "shift" key was pressed at the time of the event
alt_key: bool
Whether or not the "alt" key was pressed at the time of the event
ctrl_key: bool
Whether or not the "ctrl" key was pressed at the time of the event
meta_key: bool
Whether or not the "meta" key was pressed at the time of the event
Trait Implementations
impl<'a> Debug for Event<'a>
[src]
impl<'a> Copy for Event<'a>
[src]
impl<'a> Clone for Event<'a>
[src]
fn clone(&self) -> Event<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Hash for Event<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.