[][src]Struct cat_engine::DefaultWindow

pub struct DefaultWindow { /* fields omitted */ }

Окно с внешним обработчиком событий. A window with an outer event hanlder.

Все события обрабатываются и добавляются в очередь внешней обработки для работы с ними вне структуры окна.

All the events are handled and added to the outer handling queue to work with them outside of the window structure.

Implementations

impl DefaultWindow[src]

pub fn new<F>(setting: F) -> Result<DefaultWindow, DisplayCreationError> where
    F: FnOnce(Vec<MonitorHandle>, &mut WindowSettings), 
[src]

Создаёт окно.

Creates the window.

pub fn next_event(&mut self) -> Option<WindowEvent>[src]

Возвращает следующее событие окна.

Блокирует поток, пока не получит следующее событие.

Returns the next window event.

Blocks the thread until it receives the next event.

pub fn into_paged_window(self) -> PagedWindow[src]

Переводит в PagedWindow.

Сохраняет состояние окна при feature = "auto_hide" (свёрнутое или нет).

Converts into the PagedWindow.

Saves the 'auto_hide' feature state (the window hidden or not).

pub fn into_dynamic_window<'a, O: PartialEq>(self) -> DynamicWindow<'a, O>[src]

Переводит в DynamicWindow.

Не учитывает состояние окна при feature = "auto_hide" (свёрнутое или нет).

Converts into the DynamicWindow.

Ignores the 'auto_hide' feature state (the window hidden or not).

Trait Implementations

impl Window for DefaultWindow[src]

Auto Trait Implementations

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, 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.