Trait script::dom::bindings::codegen::Bindings::ResizeObserverBinding::ResizeObserver_Binding::ResizeObserverMethods
source · 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§
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>>
Object Safety§
This trait is not object safe.