Trait script::dom::activation::Activatable

source ·
pub trait Activatable {
    // Required methods
    fn as_element(&self) -> ∈
    fn is_instance_activatable(&self) -> bool;
    fn activation_behavior(
        &self,
        event: &Event,
        target: &EventTarget,
        can_gc: CanGc,
    );

    // Provided methods
    fn legacy_pre_activation_behavior(&self) -> Option<InputActivationState> { ... }
    fn legacy_canceled_activation_behavior(
        &self,
        _state_before: Option<InputActivationState>,
    ) { ... }
    fn enter_formal_activation_state(&self) { ... }
    fn exit_formal_activation_state(&self) { ... }
}
Expand description

Trait for elements with defined activation behavior

Required Methods§

source

fn as_element(&self) -> &Element

source

fn is_instance_activatable(&self) -> bool

source

fn activation_behavior( &self, event: &Event, target: &EventTarget, can_gc: CanGc, )

Provided Methods§

Implementors§