pub struct EnableDeviceEmulationOptions { /* private fields */ }
Implementations§
Source§impl EnableDeviceEmulationOptions
impl EnableDeviceEmulationOptions
pub fn new( device_scale_factor: f32, scale: f32, screen_position: JsString, screen_size: Size, view_position: Point, view_size: Size, ) -> EnableDeviceEmulationOptions
pub fn device_scale_factor(&self) -> f32
pub fn set_device_scale_factor(&mut self, value: f32)
pub fn scale(&self) -> f32
pub fn set_scale(&mut self, value: f32)
pub fn screen_position(&self) -> JsString
pub fn set_screen_position(&mut self, value: JsString)
pub fn screen_size(&self) -> Size
pub fn set_screen_size(&mut self, value: Size)
pub fn view_position(&self) -> Point
pub fn set_view_position(&mut self, value: Point)
pub fn view_size(&self) -> Size
pub fn set_view_size(&mut self, value: Size)
Trait Implementations§
Source§impl Clone for EnableDeviceEmulationOptions
impl Clone for EnableDeviceEmulationOptions
Source§fn clone(&self) -> EnableDeviceEmulationOptions
fn clone(&self) -> EnableDeviceEmulationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnableDeviceEmulationOptions
impl Debug for EnableDeviceEmulationOptions
Source§impl From<EnableDeviceEmulationOptions> for JsValue
impl From<EnableDeviceEmulationOptions> for JsValue
Source§fn from(value: EnableDeviceEmulationOptions) -> Self
fn from(value: EnableDeviceEmulationOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnableDeviceEmulationOptions
impl PartialEq for EnableDeviceEmulationOptions
Source§fn eq(&self, other: &EnableDeviceEmulationOptions) -> bool
fn eq(&self, other: &EnableDeviceEmulationOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl RefFromWasmAbi for EnableDeviceEmulationOptions
impl RefFromWasmAbi for EnableDeviceEmulationOptions
Source§type Anchor = RcRef<EnableDeviceEmulationOptions>
type Anchor = RcRef<EnableDeviceEmulationOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for EnableDeviceEmulationOptions
impl VectorFromWasmAbi for EnableDeviceEmulationOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[EnableDeviceEmulationOptions]>
Source§impl VectorIntoJsValue for EnableDeviceEmulationOptions
impl VectorIntoJsValue for EnableDeviceEmulationOptions
fn vector_into_jsvalue(vector: Box<[EnableDeviceEmulationOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for EnableDeviceEmulationOptions
impl VectorIntoWasmAbi for EnableDeviceEmulationOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[EnableDeviceEmulationOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for EnableDeviceEmulationOptions
impl WasmDescribeVector for EnableDeviceEmulationOptions
impl StructuralPartialEq for EnableDeviceEmulationOptions
impl SupportsConstructor for EnableDeviceEmulationOptions
impl SupportsInstanceProperty for EnableDeviceEmulationOptions
impl SupportsStaticProperty for EnableDeviceEmulationOptions
Auto Trait Implementations§
impl Freeze for EnableDeviceEmulationOptions
impl RefUnwindSafe for EnableDeviceEmulationOptions
impl !Send for EnableDeviceEmulationOptions
impl !Sync for EnableDeviceEmulationOptions
impl Unpin for EnableDeviceEmulationOptions
impl UnwindSafe for EnableDeviceEmulationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.