[][src]Struct cat_engine::PagedWindow

pub struct PagedWindow { /* fields omitted */ }

Окно, которое использует "страницы" и замыкания для обработки событий. A window that uses 'pages' and closures to handle the events.

Все события прописываются с помощь типажа WindowPage и обработываются сразу же после их появления.

All the events are implemented with WindowPage and handled immediately after emited.

Implementations

impl PagedWindow[src]

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

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

Creates the window.

pub fn run<F: FnMut(&mut PagedWindow, WindowEvent)>(&mut self, handler: F)[src]

Запускает обработку событий с помощью данного замыкания.

Starts event handling with the given closure.

pub fn run_page<O: PartialEq, P: WindowPage<'static, Window = PagedWindow, Output = O>>(
    &mut self,
    page: &mut P
) -> O
[src]

Запускает данную страницу.

Starts the given page.

pub fn stop_events(&self) -> Result<(), EventLoopClosed<InnerWindowEvent>>[src]

Останавливает обработку событий, отправляя событие для остановки.

Возвращает Err, если обработчик уже остановлен.

Stops the event loop by sending the stopping event.

Returns Err if the loop is already stopped.

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 PagedWindow[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.