pub struct View { /* private fields */ }Available on macOS only.
Implementations§
Source§impl View
impl View
pub fn new(parent: impl AsContainer) -> 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<()>
Trait Implementations§
Source§impl AsContainer for View
impl AsContainer for View
Source§fn as_container(&self) -> BorrowedContainer<'_>
fn as_container(&self) -> BorrowedContainer<'_>
Get the container handle.
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl !UnwindSafe for View
impl Freeze for View
impl Unpin for View
impl UnsafeUnpin for View
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