pub trait DataTransferMethods<D: DomTypes> {
    // Required methods
    fn DropEffect(&self) -> DOMString;
    fn SetDropEffect(&self, value: DOMString);
    fn EffectAllowed(&self) -> DOMString;
    fn SetEffectAllowed(&self, value: DOMString);
    fn Items(&self) -> Root<Dom<DataTransferItemList>>;
    fn SetDragImage(&self, image: &Element, x: i32, y: i32);
    fn Types(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn GetData(&self, format: DOMString) -> DOMString;
    fn SetData(&self, format: DOMString, data: DOMString);
    fn ClearData(&self, format: Option<DOMString>);
    fn Files(&self) -> Root<Dom<FileList>>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Root<Dom<DataTransfer>>;
}

Required Methods§

source

fn DropEffect(&self) -> DOMString

source

fn SetDropEffect(&self, value: DOMString)

source

fn EffectAllowed(&self) -> DOMString

source

fn SetEffectAllowed(&self, value: DOMString)

source

fn Items(&self) -> Root<Dom<DataTransferItemList>>

source

fn SetDragImage(&self, image: &Element, x: i32, y: i32)

source

fn Types(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

source

fn GetData(&self, format: DOMString) -> DOMString

source

fn SetData(&self, format: DOMString, data: DOMString)

source

fn ClearData(&self, format: Option<DOMString>)

source

fn Files(&self) -> Root<Dom<FileList>>

source

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

Object Safety§

This trait is not object safe.

Implementors§