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

pub enum WindowEvent {
    Idle,
    Refresh,
    Resize,
    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

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 new URL is to be loaded.

Sent when a mouse hit test is to be performed.

Sent when a mouse move.

Touch event: type, identifier, point

Sent when the user scrolls. The first point is the delta and the second point is the origin.

Sent when the user zooms.

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

Sent when a key input state changes

Sent when Ctr+R/Apple+R is called to reload the current page.

Create a new top level browsing context

Close a top level browsing context

Panic a top level browsing context.

Make a top level browsing context visible, hiding the previous visible one.

Toggles a debug flag in WebRender

Capture current WebRender

Trait Implementations

impl Clone for WindowEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for WindowEvent
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for WindowEvent

impl Sync for WindowEvent

Blanket Implementations

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

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T
[src]

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.