pub struct Display { /* private fields */ }
Implementations§
Source§impl Display
impl Display
pub fn new( accelerometer_support: JsString, bounds: Rectangle, color_depth: u32, color_space: JsString, depth_per_component: u32, id: u32, internal: bool, monochrome: bool, rotation: u32, scale_factor: f32, size: Size, touch_support: JsString, work_area_size: Size, work_area: Rectangle, ) -> Display
pub fn accelerometer_support(&self) -> JsString
pub fn set_accelerometer_support(&mut self, value: JsString)
pub fn bounds(&self) -> Rectangle
pub fn set_bounds(&mut self, value: Rectangle)
pub fn color_depth(&self) -> u32
pub fn set_color_depth(&mut self, value: u32)
pub fn color_space(&self) -> JsString
pub fn set_color_space(&mut self, value: JsString)
pub fn depth_per_component(&self) -> u32
pub fn set_depth_per_component(&mut self, value: u32)
pub fn id(&self) -> u32
pub fn set_id(&mut self, value: u32)
pub fn internal(&self) -> bool
pub fn set_internal(&mut self, value: bool)
pub fn monochrome(&self) -> bool
pub fn set_monochrome(&mut self, value: bool)
pub fn rotation(&self) -> u32
pub fn set_rotation(&mut self, value: u32)
pub fn scale_factor(&self) -> f32
pub fn set_scale_factor(&mut self, value: f32)
pub fn size(&self) -> Size
pub fn set_size(&mut self, value: Size)
pub fn touch_support(&self) -> JsString
pub fn set_touch_support(&mut self, value: JsString)
pub fn work_area_size(&self) -> Size
pub fn set_work_area_size(&mut self, value: Size)
pub fn work_area(&self) -> Rectangle
pub fn set_work_area(&mut self, value: Rectangle)
Trait Implementations§
Source§impl FromWasmAbi for Display
impl FromWasmAbi for Display
Source§impl IntoWasmAbi for Display
impl IntoWasmAbi for Display
Source§impl LongRefFromWasmAbi for Display
impl LongRefFromWasmAbi for Display
Source§impl OptionFromWasmAbi for Display
impl OptionFromWasmAbi for Display
Source§impl OptionIntoWasmAbi for Display
impl OptionIntoWasmAbi for Display
Source§impl RefFromWasmAbi for Display
impl RefFromWasmAbi for Display
Source§impl RefMutFromWasmAbi for Display
impl RefMutFromWasmAbi for Display
Source§impl TryFromJsValue for Display
impl TryFromJsValue for Display
Source§impl VectorFromWasmAbi for Display
impl VectorFromWasmAbi for Display
Source§impl VectorIntoWasmAbi for Display
impl VectorIntoWasmAbi for Display
impl StructuralPartialEq for Display
impl SupportsConstructor for Display
impl SupportsInstanceProperty for Display
impl SupportsStaticProperty for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
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
.