Enum compositing::windowing::WindowEvent [−][src]
Events that the windowing system sends to Servo.
Variants
Sent when no message has arrived, but the event loop was kicked for some reason (perhaps by another Servo subsystem).
FIXME(pcwalton): This is kind of ugly and may not work well with multiprocess Servo.
It’s possible that this should be something like
CompositorMessageWindowEvent(compositor_thread::Msg)
instead.
Sent when part of the window is marked dirty and needs to be redrawn. Before sending this
message, the window must make the same GL context as in PrepareRenderingEvent
current.
Sent when the window is resized.
Sent when a navigation request from script is allowed/refused.
LoadUrl(TopLevelBrowsingContextId, ServoUrl)
Sent when a new URL is to be loaded.
MouseWindowEventClass(MouseWindowEvent)
Sent when a mouse hit test is to be performed.
MouseWindowMoveEventClass(DevicePoint)
Sent when a mouse move.
Touch(TouchEventType, TouchId, DevicePoint)
Touch event: type, identifier, point
Wheel(WheelDelta, DevicePoint)
Sent when user moves the mouse wheel.
Scroll(ScrollLocation, DeviceIntPoint, TouchEventType)
Sent when the user scrolls. The first point is the delta and the second point is the origin.
Zoom(f32)
Sent when the user zooms.
PinchZoom(f32)
Simulated “pinch zoom” gesture for non-touch platforms (e.g. ctrl-scrollwheel).
Sent when the user resets zoom to default.
Sent when the user uses chrome navigation (i.e. backspace or shift-backspace).
Sent when the user quits the application
ExitFullScreen(TopLevelBrowsingContextId)
Sent when the user exits from fullscreen mode
Keyboard(KeyboardEvent)
Sent when a key input state changes
Reload(TopLevelBrowsingContextId)
Sent when Ctr+R/Apple+R is called to reload the current page.
NewBrowser(ServoUrl, TopLevelBrowsingContextId)
Create a new top level browsing context
CloseBrowser(TopLevelBrowsingContextId)
Close a top level browsing context
SendError(Option<TopLevelBrowsingContextId>, String)
Panic a top level browsing context.
SelectBrowser(TopLevelBrowsingContextId)
Make a top level browsing context visible, hiding the previous visible one.
ToggleWebRenderDebug(WebRenderDebugOption)
Toggles a debug flag in WebRender
Capture current WebRender
Clear the network cache.
Toggle sampling profiler with the given sampling rate and max duration.
MediaSessionAction(MediaSessionActionType)
Sent when the user triggers a media action through the UA exposed media UI (play, pause, seek, etc.).
ChangeBrowserVisibility(TopLevelBrowsingContextId, bool)
Set browser visibility. A hidden browser will not tick the animations.
Virtual keyboard was dismissed
Trait Implementations
impl Clone for WindowEvent
[src]
fn clone(&self) -> WindowEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WindowEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowEvent
impl Send for WindowEvent
impl Sync for WindowEvent
impl Unpin for WindowEvent
impl UnwindSafe for WindowEvent
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for 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> MaybeBoxed<Box<T, Global>> for T
[src]
pub fn maybe_boxed(self) -> Box<T, Global>
[src]
impl<T> MaybeBoxed<T> for T
[src]
pub fn maybe_boxed(self) -> T
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,