pub struct AndroidScreens { /* private fields */ }Expand description
The screens of the device, keyed by the id of their display.
Trait Implementations§
Source§impl ScreensBaseImpl for AndroidScreens
impl ScreensBaseImpl for AndroidScreens
Source§type Screen = AndroidScreen
type Screen = AndroidScreen
The screen type of the backend.
Source§fn screens_base(&self) -> &ScreensBase<i32, AndroidScreen>
fn screens_base(&self) -> &ScreensBase<i32, AndroidScreen>
The state embedded in the implementation.
Source§fn get_all_screen_keys(&self) -> Vec<i32>
fn get_all_screen_keys(&self) -> Vec<i32>
The keys of all screens that currently exist.
Source§fn create_screen_from_key(&self, key: &i32) -> Rc<AndroidScreen>
fn create_screen_from_key(&self, key: &i32) -> Rc<AndroidScreen>
Creates the screen for a key that was not known before.
Source§fn screen_changed(&self, screen: &Rc<AndroidScreen>)
fn screen_changed(&self, screen: &Rc<AndroidScreen>)
Called for a known screen each time the screens are refreshed.
Source§fn screen_from_top_level_core(
&self,
top_level: &dyn ITopLevelImpl,
) -> Option<Rc<Screen>>
fn screen_from_top_level_core( &self, top_level: &dyn ITopLevelImpl, ) -> Option<Rc<Screen>>
The screen that
top_level is on.Source§fn screen_from_point_core(&self, _point: PixelPoint) -> Option<Rc<Screen>>
fn screen_from_point_core(&self, _point: PixelPoint) -> Option<Rc<Screen>>
The screen that contains
point.Source§fn screen_from_rect_core(&self, _rect: PixelRect) -> Option<Rc<Screen>>
fn screen_from_rect_core(&self, _rect: PixelRect) -> Option<Rc<Screen>>
The screen that the largest part of
rect is on.Source§fn screen_added(&self, screen: &Rc<Self::Screen>)
fn screen_added(&self, screen: &Rc<Self::Screen>)
Called for a screen that was just created.
Source§fn screen_removed(&self, screen: &Rc<Self::Screen>)
fn screen_removed(&self, screen: &Rc<Self::Screen>)
Called for a screen whose key disappeared.
Source§fn get_screen_count(&self) -> i32
fn get_screen_count(&self) -> i32
The number of screens.
Source§fn request_screen_details_core(&self) -> Pin<Box<dyn Future<Output = bool>>>
fn request_screen_details_core(&self) -> Pin<Box<dyn Future<Output = bool>>>
See
IScreenImpl::request_screen_details; the outcome is cached.Auto Trait Implementations§
impl !Freeze for AndroidScreens
impl !RefUnwindSafe for AndroidScreens
impl !Send for AndroidScreens
impl !Sync for AndroidScreens
impl !UnwindSafe for AndroidScreens
impl Unpin for AndroidScreens
impl UnsafeUnpin for AndroidScreens
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read moreSource§impl<T> IScreenImpl for Twhere
T: ScreensBaseImpl + ?Sized,
impl<T> IScreenImpl for Twhere
T: ScreensBaseImpl + ?Sized,
Source§fn screen_count(&self) -> i32
fn screen_count(&self) -> i32
Gets the total number of screens available on the device.
Source§fn all_screens(&self) -> Vec<Rc<Screen>>
fn all_screens(&self) -> Vec<Rc<Screen>>
Gets the list of all screens available on the device.
Source§fn set_changed(&self, value: Option<Rc<dyn Fn()>>)
fn set_changed(&self, value: Option<Rc<dyn Fn()>>)
Sets a method called when the screens change.
Source§fn screen_from_window(&self, window: &dyn IWindowBaseImpl) -> Option<Rc<Screen>>
fn screen_from_window(&self, window: &dyn IWindowBaseImpl) -> Option<Rc<Screen>>
The screen that
window is on.Source§fn screen_from_top_level(
&self,
top_level: &dyn ITopLevelImpl,
) -> Option<Rc<Screen>>
fn screen_from_top_level( &self, top_level: &dyn ITopLevelImpl, ) -> Option<Rc<Screen>>
The screen that
top_level is on.Source§fn screen_from_point(&self, point: PixelPoint) -> Option<Rc<Screen>>
fn screen_from_point(&self, point: PixelPoint) -> Option<Rc<Screen>>
The screen that contains
point.Source§impl<T> ScreensBaseImplExt for Twhere
T: ScreensBaseImpl + ?Sized,
impl<T> ScreensBaseImplExt for Twhere
T: ScreensBaseImpl + ?Sized,
Source§fn on_changed(self: &Rc<T>)
fn on_changed(self: &Rc<T>)
Invalidates the cached screens and schedules the changed
notification, so that multiple continuous platform events are
accumulated into one. Read more
Source§fn try_get_screen(
&self,
key: &<T as ScreensBaseImpl>::Key,
) -> Option<Rc<<T as ScreensBaseImpl>::Screen>>
fn try_get_screen( &self, key: &<T as ScreensBaseImpl>::Key, ) -> Option<Rc<<T as ScreensBaseImpl>::Screen>>
The screen of a key, if the key is one of the current screen keys.
Source§fn all_platform_screens(&self) -> Vec<Rc<<T as ScreensBaseImpl>::Screen>>
fn all_platform_screens(&self) -> Vec<Rc<<T as ScreensBaseImpl>::Screen>>
All current screens, as the screen type of the backend.