[][src]Struct cat_engine::PagedWindow

pub struct PagedWindow { /* fields omitted */ }

Окно, заменяет собой обычное окно. A window replaces the default one. feature = "paged_format"

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

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

Implementations

impl Window[src]

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

Создаёт окно. Принимает функцию для настройки.

Creates the window.

pub fn raw<P: AsRef<Path>>(
    window_builder: WindowBuilder,
    context_builder: ContextBuilder<NotCurrent>,
    graphics_settings: GraphicsSettings,
    event_loop: EventLoop<InnerWindowEvent>,
    initial_colour: Option<Colour>,
    mouse_cursor_icon_path: P,
    mouse_cursor_icon_range: Range<usize>
) -> Result<Window, DisplayCreationError>
[src]

mouse_cursor_icon_path, mouse_cursor_icon_range - feature = "mouse_cursor_icon"

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

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

Starts event handling with the given closure.

pub fn run_page<P: WindowPage>(&mut self, page: &mut P)[src]

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

Starts the given page.

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

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

Stops the event listener by sending the stopping event if it's running.

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> SetParameter for T

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.