pub struct FullScreen { /* private fields */ }Expand description
A shared handle to the full screen service, from crate::BuildCx::full_screen or
crate::Ui::full_screen.
use ravenrs_widgets::FullScreen;
let screen = FullScreen::default();
screen.toggle();
assert!(screen.is_on());Implementations§
Source§impl FullScreen
impl FullScreen
Sourcepub fn new(provider: impl FullScreenProvider + 'static) -> Self
pub fn new(provider: impl FullScreenProvider + 'static) -> Self
The service backed by provider.
Trait Implementations§
Source§impl Clone for FullScreen
impl Clone for FullScreen
Source§fn clone(&self) -> FullScreen
fn clone(&self) -> FullScreen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FullScreen
impl Debug for FullScreen
Auto Trait Implementations§
impl !RefUnwindSafe for FullScreen
impl !Send for FullScreen
impl !Sync for FullScreen
impl !UnwindSafe for FullScreen
impl Freeze for FullScreen
impl Unpin for FullScreen
impl UnsafeUnpin for FullScreen
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