#[repr(transparent)]pub struct Screen { /* private fields */ }
Expand description
The Screen
object
This API requires the following crate features to be activated: Screen
Implementations§
source§impl Screen
impl Screen
sourcepub fn avail_width(&self) -> Result<i32, JsValue>
pub fn avail_width(&self) -> Result<i32, JsValue>
The availWidth
getter
This API requires the following crate features to be activated: Screen
source§impl Screen
impl Screen
sourcepub fn avail_height(&self) -> Result<i32, JsValue>
pub fn avail_height(&self) -> Result<i32, JsValue>
The availHeight
getter
This API requires the following crate features to be activated: Screen
source§impl Screen
impl Screen
sourcepub fn color_depth(&self) -> Result<i32, JsValue>
pub fn color_depth(&self) -> Result<i32, JsValue>
The colorDepth
getter
This API requires the following crate features to be activated: Screen
source§impl Screen
impl Screen
sourcepub fn pixel_depth(&self) -> Result<i32, JsValue>
pub fn pixel_depth(&self) -> Result<i32, JsValue>
The pixelDepth
getter
This API requires the following crate features to be activated: Screen
source§impl Screen
impl Screen
sourcepub fn avail_left(&self) -> Result<i32, JsValue>
pub fn avail_left(&self) -> Result<i32, JsValue>
The availLeft
getter
This API requires the following crate features to be activated: Screen
source§impl Screen
impl Screen
sourcepub fn orientation(&self) -> ScreenOrientation
pub fn orientation(&self) -> ScreenOrientation
The orientation
getter
This API requires the following crate features to be activated: Screen
, ScreenOrientation
source§impl Screen
impl Screen
sourcepub fn color_gamut(&self) -> ScreenColorGamut
pub fn color_gamut(&self) -> ScreenColorGamut
The colorGamut
getter
This API requires the following crate features to be activated: Screen
, ScreenColorGamut
source§impl Screen
impl Screen
sourcepub fn luminance(&self) -> Option<ScreenLuminance>
pub fn luminance(&self) -> Option<ScreenLuminance>
The luminance
getter
This API requires the following crate features to be activated: Screen
, ScreenLuminance
source§impl Screen
impl Screen
Trait Implementations§
source§impl AsRef<EventTarget> for Screen
impl AsRef<EventTarget> for Screen
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl From<Screen> for EventTarget
impl From<Screen> for EventTarget
source§fn from(obj: Screen) -> EventTarget
fn from(obj: Screen) -> EventTarget
source§impl FromWasmAbi for Screen
impl FromWasmAbi for Screen
source§impl<'a> IntoWasmAbi for &'a Screen
impl<'a> IntoWasmAbi for &'a Screen
source§impl IntoWasmAbi for Screen
impl IntoWasmAbi for Screen
source§impl JsCast for Screen
impl JsCast for Screen
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for Screen
impl OptionFromWasmAbi for Screen
source§impl<'a> OptionIntoWasmAbi for &'a Screen
impl<'a> OptionIntoWasmAbi for &'a Screen
source§impl OptionIntoWasmAbi for Screen
impl OptionIntoWasmAbi for Screen
source§impl RefFromWasmAbi for Screen
impl RefFromWasmAbi for Screen
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<Screen>
type Anchor = ManuallyDrop<Screen>
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. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more