pub trait ResizeObserverMethods {
    // Required methods
    fn Observe(&self, target: &Element, options: &ResizeObserverOptions);
    fn Unobserve(&self, target: &Element);
    fn Disconnect(&self);
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        callback: Rc<ResizeObserverCallback>,
    ) -> Root<Dom<ResizeObserver>>;
}

Required Methods§

source

fn Observe(&self, target: &Element, options: &ResizeObserverOptions)

source

fn Unobserve(&self, target: &Element)

source

fn Disconnect(&self)

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, callback: Rc<ResizeObserverCallback>, ) -> Root<Dom<ResizeObserver>>

Object Safety§

This trait is not object safe.

Implementors§