Struct wita::Window[][src]

pub struct Window { /* fields omitted */ }

Represents a window.

Implementations

impl Window[src]

pub fn title(&self) -> String[src]

pub fn set_title(&self, title: impl AsRef<str>)[src]

pub fn position(&self) -> ScreenPosition[src]

pub fn set_position(&self, position: ScreenPosition)[src]

pub fn inner_size(&self) -> PhysicalSize<u32>[src]

pub fn set_inner_size(&self, size: impl ToPhysicalSize<u32>)[src]

pub fn dpi(&self) -> u32[src]

pub fn scale_factor(&self) -> f32[src]

pub fn show(&self)[src]

pub fn hide(&self)[src]

pub fn redraw(&self)[src]

pub fn is_closed(&self) -> bool[src]

pub fn close(&self)[src]

pub fn ime_position(&self) -> PhysicalPosition<i32>[src]

pub fn ime(&self, enable: bool)[src]

pub fn set_ime_position(&self, position: impl ToPhysicalPosition<i32>)[src]

pub fn is_enabled_ime(&self) -> bool[src]

pub fn style(&self) -> WindowStyle[src]

pub fn set_style(&self, style: impl Style)[src]

pub fn accept_drag_files(&self, enabled: bool)[src]

pub fn raw_handle(&self) -> *mut c_void[src]

Trait Implementations

impl Clone for Window[src]

impl Eq for Window[src]

impl HasRawWindowHandle for Window[src]

impl PartialEq<Window> for Window[src]

Auto Trait Implementations

impl RefUnwindSafe for Window

impl Send for Window

impl Sync for Window

impl Unpin for Window

impl UnwindSafe for Window

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.