Struct browser_window::window::WindowHandle
source · pub struct WindowHandle(/* private fields */);
Expand description
A handle that exposes all windowing functionality.
Implementations§
source§impl WindowHandle
impl WindowHandle
pub fn content_dimensions(&self) -> Dims2D
pub fn opacity(&self) -> u8
pub fn position(&self) -> Pos2D
pub fn title(&self) -> String
pub fn window_dimensions(&self) -> Dims2D
sourcepub fn hide(&self)
pub fn hide(&self)
Hides the window. Keep in mind that hiding the window is not the same as closing it. Hiding the window will keep it’s resources alive. If the window is hidden, and all window handles are gone, the memory is effectively leaked.
pub fn set_content_dimensions(&self, dimensions: Dims2D)
pub fn set_opacity(&self, opacity: u8)
pub fn set_position(&self, position: Pos2D)
pub fn set_title(&self, title: &str)
pub fn set_window_dimensions(&self, dimensions: Dims2D)
Trait Implementations§
source§impl HasHandle<WindowHandle> for BrowserWindow
impl HasHandle<WindowHandle> for BrowserWindow
fn handle(&self) -> &WindowHandle
source§impl HasHandle<WindowHandle> for BrowserWindowHandle
impl HasHandle<WindowHandle> for BrowserWindowHandle
fn handle(&self) -> &WindowHandle
Auto Trait Implementations§
impl Freeze for WindowHandle
impl RefUnwindSafe for WindowHandle
impl !Send for WindowHandle
impl !Sync for WindowHandle
impl Unpin for WindowHandle
impl UnwindSafe for WindowHandle
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