Window

Struct Window 

Source
pub struct Window { /* private fields */ }
Expand description

Safe wrapper over a IITWindow

Implementations§

Source§

impl Window

Source

pub fn Name(&self) -> Result<String>

The title of the window.

Source

pub fn Kind(&self) -> Result<ITWindowKind>

The window kind.

Source

pub fn is_Visible(&self) -> Result<bool>

True if the window is visible. Note that the main browser window cannot be hidden.

Source

pub fn set_Visible(&self, Visible: bool) -> Result<()>

True if the window is visible. Note that the main browser window cannot be hidden.

Source

pub fn is_Resizable(&self) -> Result<bool>

True if the window is resizable.

Source

pub fn is_Minimized(&self) -> Result<bool>

True if the window is minimized.

Source

pub fn set_Minimized(&self, Minimized: bool) -> Result<()>

True if the window is minimized.

Source

pub fn is_Maximizable(&self) -> Result<bool>

True if the window is maximizable.

Source

pub fn is_Maximized(&self) -> Result<bool>

True if the window is maximized.

Source

pub fn set_Maximized(&self, Maximized: bool) -> Result<()>

True if the window is maximized.

Source

pub fn is_Zoomable(&self) -> Result<bool>

True if the window is zoomable.

Source

pub fn is_Zoomed(&self) -> Result<bool>

True if the window is zoomed.

Source

pub fn set_Zoomed(&self, Zoomed: bool) -> Result<()>

True if the window is zoomed.

Source

pub fn Top(&self) -> Result<i32>

The screen coordinate of the top edge of the window.

Source

pub fn set_Top(&self, Top: i32) -> Result<()>

The screen coordinate of the top edge of the window.

Source

pub fn Left(&self) -> Result<i32>

The screen coordinate of the left edge of the window.

Source

pub fn set_Left(&self, Left: i32) -> Result<()>

The screen coordinate of the left edge of the window.

Source

pub fn Bottom(&self) -> Result<i32>

The screen coordinate of the bottom edge of the window.

Source

pub fn set_Bottom(&self, Bottom: i32) -> Result<()>

The screen coordinate of the bottom edge of the window.

Source

pub fn Right(&self) -> Result<i32>

The screen coordinate of the right edge of the window.

Source

pub fn set_Right(&self, Right: i32) -> Result<()>

The screen coordinate of the right edge of the window.

Source

pub fn Width(&self) -> Result<i32>

The width of the window.

Source

pub fn set_Width(&self, Width: i32) -> Result<()>

The width of the window.

Source

pub fn Height(&self) -> Result<i32>

The height of the window.

Source

pub fn set_Height(&self, Height: i32) -> Result<()>

The height of the window.

Trait Implementations§

Source§

impl ITunesRelatedObject for Window

Source§

fn iTunes_instance(&self) -> Arc<iTunes>

Return the related iTunes instance this object is related to

Auto Trait Implementations§

§

impl Freeze for Window

§

impl RefUnwindSafe for Window

§

impl !Send for Window

§

impl !Sync for Window

§

impl Unpin for Window

§

impl UnwindSafe for Window

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.