[][src]Enum compositing::windowing::WindowEvent

pub enum WindowEvent {
    Idle,
    Refresh,
    Resize,
    AllowNavigationResponse(PipelineIdbool),
    LoadUrl(TopLevelBrowsingContextIdServoUrl),
    MouseWindowEventClass(MouseWindowEvent),
    MouseWindowMoveEventClass(DevicePoint),
    Touch(TouchEventTypeTouchIdDevicePoint),
    Scroll(ScrollLocationDeviceIntPointTouchEventType),
    Zoom(f32),
    PinchZoom(f32),
    ResetZoom,
    Navigation(TopLevelBrowsingContextIdTraversalDirection),
    Quit,
    Keyboard(KeyboardEvent),
    Reload(TopLevelBrowsingContextId),
    NewBrowser(ServoUrlTopLevelBrowsingContextId),
    CloseBrowser(TopLevelBrowsingContextId),
    SendError(Option<TopLevelBrowsingContextId>, String),
    SelectBrowser(TopLevelBrowsingContextId),
    ToggleWebRenderDebug(WebRenderDebugOption),
    CaptureWebRender,
}

Events that the windowing system sends to Servo.

Variants

Idle

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.

Refresh

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.

Resize

Sent when the window is resized.

AllowNavigationResponse(PipelineIdbool)

Sent when a navigation request from script is allowed/refused.

LoadUrl(TopLevelBrowsingContextIdServoUrl)

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(TouchEventTypeTouchIdDevicePoint)

Touch event: type, identifier, point

Scroll(ScrollLocationDeviceIntPointTouchEventType)

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).

ResetZoom

Sent when the user resets zoom to default.

Navigation(TopLevelBrowsingContextIdTraversalDirection)

Sent when the user uses chrome navigation (i.e. backspace or shift-backspace).

Quit

Sent when the user quits the application

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(ServoUrlTopLevelBrowsingContextId)

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

CaptureWebRender

Capture current WebRender

Trait Implementations

impl Clone for WindowEvent[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for WindowEvent[src]

Auto Trait Implementations

impl Send for WindowEvent

impl Sync for WindowEvent

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Same for T[src]

type Output = T

Should always be Self

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.