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