[][src]Struct druid_shell::WindowHandle

pub struct WindowHandle<THandler: WinHandler<THandler> + Clone + Default>(pub WindowHandle<THandler>);

A handle to a platform window object.

Methods

impl<THandler: WinHandler<THandler> + Clone + Default> WindowHandle<THandler>[src]

pub fn show(&self)[src]

Make this window visible.

This is part of the initialization process; it should only be called once, when a window is first created.

pub fn close(&self)[src]

Close the window.

pub fn bring_to_front_and_focus(&self)[src]

Bring this window to the front of the window stack and give it focus.

pub fn invalidate(&self)[src]

Request invalidation of the entire window contents.

Trait Implementations

impl<THandler: Clone + WinHandler<THandler> + Default> Clone for WindowHandle<THandler>[src]

impl<THandler: Default + WinHandler<THandler> + Clone> Default for WindowHandle<THandler>[src]

impl<THandler: WinHandler<THandler> + Clone + Default> From<WindowHandle<THandler>> for WindowHandle<THandler>[src]

Auto Trait Implementations

impl<THandler> Send for WindowHandle<THandler> where
    THandler: Send

impl<THandler> Sync for WindowHandle<THandler> where
    THandler: Sync

impl<THandler> Unpin for WindowHandle<THandler> where
    THandler: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T[src]

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.