[−][src]Struct cat_engine::PagedWindow
Окно, заменяет собой обычное окно. 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]
F: FnOnce(Vec<MonitorHandle>, &mut WindowSettings),
Создаёт окно. Принимает функцию для настройки.
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]
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>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,