pub struct ScriptEventHandle(/* private fields */);Implementations§
Source§impl ScriptEventHandle
impl ScriptEventHandle
pub fn new( event_type: impl Into<String>, target: ListenerTarget, bubbles: bool, cancelable: bool, ) -> Self
pub fn new_keyboard( event_type: impl Into<String>, target: ListenerTarget, bubbles: bool, cancelable: bool, init: &KeyboardEventInit, ) -> Self
pub fn event_type(&self) -> String
pub fn target(&self) -> ListenerTarget
pub fn current_target(&self) -> Option<ListenerTarget>
pub fn set_current_target(&self, target: Option<ListenerTarget>)
pub fn bubbles(&self) -> bool
pub fn cancelable(&self) -> bool
pub fn default_prevented(&self) -> bool
pub fn propagation_stopped(&self) -> bool
pub fn immediate_propagation_stopped(&self) -> bool
pub fn event_phase(&self) -> EventPhase
pub fn key(&self) -> Option<String>
pub fn code(&self) -> Option<String>
pub fn ctrl_key(&self) -> bool
pub fn meta_key(&self) -> bool
pub fn shift_key(&self) -> bool
pub fn alt_key(&self) -> bool
pub fn repeat(&self) -> bool
pub fn is_composing(&self) -> bool
pub fn is_trusted(&self) -> bool
pub fn set_phase(&self, phase: EventPhase)
pub fn prevent_default(&self)
pub fn stop_propagation(&self)
pub fn stop_immediate_propagation(&self)
Trait Implementations§
Source§impl Clone for ScriptEventHandle
impl Clone for ScriptEventHandle
Source§fn clone(&self) -> ScriptEventHandle
fn clone(&self) -> ScriptEventHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptEventHandle
impl Debug for ScriptEventHandle
Source§impl PartialEq for ScriptEventHandle
impl PartialEq for ScriptEventHandle
impl Eq for ScriptEventHandle
impl StructuralPartialEq for ScriptEventHandle
Auto Trait Implementations§
impl Freeze for ScriptEventHandle
impl !RefUnwindSafe for ScriptEventHandle
impl !Send for ScriptEventHandle
impl !Sync for ScriptEventHandle
impl Unpin for ScriptEventHandle
impl UnsafeUnpin for ScriptEventHandle
impl !UnwindSafe for ScriptEventHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more