Lines Matching refs:EventsLoop

138         events_loop: &EventsLoop,  in new()  argument
143 EventsLoop::Wayland(ref events_loop) => { in new()
146 EventsLoop::X(ref events_loop) => { in new()
405 pub enum EventsLoop { enum
406 Wayland(wayland::EventsLoop),
407 X(x11::EventsLoop)
416 impl EventsLoop { impl
417 pub fn new() -> EventsLoop { in new()
422 return EventsLoop::new_x11().expect("Failed to initialize X11 backend"); in new()
425 return EventsLoop::new_wayland() in new()
435 let wayland_err = match EventsLoop::new_wayland() { in new()
440 let x11_err = match EventsLoop::new_x11() { in new()
453 pub fn new_wayland() -> Result<EventsLoop, ConnectError> { in new_wayland()
454 wayland::EventsLoop::new() in new_wayland()
455 .map(EventsLoop::Wayland) in new_wayland()
458 pub fn new_x11() -> Result<EventsLoop, XNotSupported> { in new_x11()
463 .map(x11::EventsLoop::new) in new_x11()
464 .map(EventsLoop::X) in new_x11()
471 EventsLoop::Wayland(ref evlp) => evlp in get_available_monitors()
476 EventsLoop::X(ref evlp) => evlp in get_available_monitors()
488 EventsLoop::Wayland(ref evlp) => MonitorId::Wayland(evlp.get_primary_monitor()), in get_primary_monitor()
489 EventsLoop::X(ref evlp) => MonitorId::X(evlp.x_connection().get_primary_monitor()), in get_primary_monitor()
495 EventsLoop::Wayland(ref evlp) => EventsLoopProxy::Wayland(evlp.create_proxy()), in create_proxy()
496 EventsLoop::X(ref evlp) => EventsLoopProxy::X(evlp.create_proxy()), in create_proxy()
504 EventsLoop::Wayland(ref mut evlp) => evlp.poll_events(callback), in poll_events()
505 EventsLoop::X(ref mut evlp) => evlp.poll_events(callback) in poll_events()
513 EventsLoop::Wayland(ref mut evlp) => evlp.run_forever(callback), in run_forever()
514 EventsLoop::X(ref mut evlp) => evlp.run_forever(callback) in run_forever()
521 EventsLoop::Wayland(_) => true, in is_wayland()
522 EventsLoop::X(_) => false, in is_wayland()
529 EventsLoop::Wayland(_) => None, in x_connection()
530 EventsLoop::X(ref ev) => Some(ev.x_connection()), in x_connection()