pub struct Window { /* private fields */ }Available on macOS only.
Implementations§
Source§impl Window
impl Window
pub fn new() -> Result<Self>
pub fn is_visible(&self) -> Result<bool>
pub fn set_visible(&mut self, v: bool) -> Result<()>
pub fn loc(&self) -> Result<Point>
pub fn set_loc(&mut self, p: Point) -> Result<()>
pub fn size(&self) -> Result<Size>
pub fn set_size(&mut self, v: Size) -> Result<()>
pub fn client_size(&self) -> Result<Size>
pub fn text(&self) -> Result<String>
pub fn set_text(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn vibrancy(&self) -> Result<Option<Vibrancy>>
pub fn set_vibrancy(&mut self, v: Option<Vibrancy>) -> Result<()>
pub async fn wait_size(&self)
pub async fn wait_move(&self)
pub async fn wait_close(&self)
pub async fn wait_theme_changed(&self)
Trait Implementations§
Source§impl AsContainer for Window
impl AsContainer for Window
Source§fn as_container(&self) -> BorrowedContainer<'_>
fn as_container(&self) -> BorrowedContainer<'_>
Get the container handle.
Source§impl AsWindow for Window
impl AsWindow for Window
Source§fn as_window(&self) -> BorrowedWindow<'_>
fn as_window(&self) -> BorrowedWindow<'_>
Get the window handle.
Auto Trait Implementations§
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl !UnwindSafe for Window
impl Freeze for Window
impl Unpin for Window
impl UnsafeUnpin for Window
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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